• Advertisement
Sign in to follow this  

openmp parallel

This topic is 1904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how can i make an efficient parallel code from:

for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=0;k<n;k++)
{
for(o=k;o<n;o++)
{
//here i have 4 if conditions
}}}}

until now i made:

//#pragma omp parallel
{
//#pragma omp for schedule(dynamic,2) private(i,j,l,o,CostIJ,CostResIJ,aux)
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=0;k<n;k++)
{
for(o=k;o<n;o++)
{
//here i have 4 if conditions
}}}}

another ideea for better optimization?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement