Skip to content

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

@pdhung3012

Description

@pdhung3012

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions