nivaldo wrote:hello, I am a student of engineering in computer information sciences and for some days I'm trying to figure out how to parallelize this code, maybe someone can help me
Please don't post generic requests for people to do your homework assignment for you on this forum. If you make a genuine attempt, and have a specific question to ask, then that's fine!
hjnln wrote:try this !!
array= new int[n+1];
#pragma omp parallel for num_threads(the number of core)
for(int i=n-1 ; i>=0 ; i--)
That doesn't work, due to the dependency on array!