You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Survey Question on the For loop in source file src/backprop.c line 92
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 about this for loop:
Can you briefly explain the purpose of using pragma for this case? If the pragma contained reduction and private clauses, can you briefly mention the purposes of variables in those clauses?
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 score.
(Optional) Do you actually run (interpret the code with compilation and pass input/get output) the code and see the optimization of parallelization? 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 92 of file https:/github.com/PAC-P2P/BPNN-Face-Recognition-For-Parallel/blob/master/src/backprop.c
Here is a part of the code:
omp parallel for
for (i = 0; i < m; i++)
{
new[i] = alloc_1d_dbl(n);
}
double *alloc_1d_dbl(int n)
{
double *new;
new = (double *) malloc((unsigned) (n * (sizeof(double))));
if (new == 0)
{
printf("ALLOC_1D_DBL: Couldn't allocate array of doubles\n");
return 0;
}
return new;
}
Sincerely thanks
The text was updated successfully, but these errors were encountered:
Survey Question on the For loop in source file src/backprop.c line 92
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 about this for loop:
Can you briefly explain the purpose of using pragma for this case? If the pragma contained reduction and private clauses, can you briefly mention the purposes of variables in those clauses?
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 score.
(Optional) Do you actually run (interpret the code with compilation and pass input/get output) the code and see the optimization of parallelization? Yes/No
The for loop is from line 92 of file https:/github.com/PAC-P2P/BPNN-Face-Recognition-For-Parallel/blob/master/src/backprop.c
Here is a part of the code:
omp parallel for
for (i = 0; i < m; i++)
{
new[i] = alloc_1d_dbl(n);
}
double *alloc_1d_dbl(int n)
{
double *new;
new = (double *) malloc((unsigned) (n * (sizeof(double))));
if (new == 0)
{
printf("ALLOC_1D_DBL: Couldn't allocate array of doubles\n");
return 0;
}
return new;
}
Sincerely thanks
The text was updated successfully, but these errors were encountered: