Estimateπ in Parallel Using CUDA. π can be e stimated using the following Leibniz formula:Its summation notation is
I need both serial C program and CUDA program to estimate π using Leibniz formula. You must compare the serial runtime (one CPU) and parallel runtimes (Tp) of the CUDA program with respect to different n values. You can choose a maximum n value (n3) so that you can obtain the results with a reasonable estimation accuracy (with six decimal places of accuracy) and runtime (approximately <2 minutes) and then let n2 = n3/10and n1 = n3/100.