OpenMP-101 icon indicating copy to clipboard operation
OpenMP-101 copied to clipboard

Survey Question on the For loop in source file pi/my_pi.c line 63

Open pdhung3012 opened this issue 3 years ago • 0 comments

Hello Sir/ Madam We are from a research group at Iowa State University, USA. We want to do a survey on Github developers on the methods they used for paralleling their code. To do the survey, We want to ask three questions:

  1. Have you ever tried to add pragma for that 'for' loop?.

  2. How much confidence do you have about the correctness of this implementation? You can choose from 1-5 with 1 as the lowest confidence score and 5 as the highest confidence.

  3. (Optional) Do you actually run (interpret the code with compilation and pass input/get output) the code? Yes/No

  • If yes, can you provide the information of what are the input and expected output of this program (the input that caused the program to run through this for-loop).

The for loop is from line 63 of file https:/github.com/ysh329/OpenMP-101/blob/master/pi/my_pi.c Here is a part of the code:

nan for (i = start_step_num; i < finish_step_num; ++i) { x = (i + 0.5) * step; sum = sum + (4.0 / (1.0 + (x * x))); }

Sincerely thanks

pdhung3012 avatar Jun 25 '22 23:06 pdhung3012