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
#pragma omp parallel for
for (i = 0; i < 6; i++)
{
printf("Hello World #%d, From thread %d\n ", i, omp_get_thread_num());
result_1[i] = i;
}
hpxmp result:
Hello World #0, From thread 0
Hello World #4, From thread 2
Hello World #5, From thread 2
Hello World #1, From thread 0
Hello World #2, From thread 1
Hello World #3, From thread 1
openmp result:
Hello World #0, From thread 0
Hello World #2, From thread 1
Hello World #3, From thread 2
Hello World #1, From thread 0
Hello World #5, From thread 4
Hello World #4, From thread 3
The text was updated successfully, but these errors were encountered:
#pragma omp parallel for
for (i = 0; i < 6; i++)
{
printf("Hello World #%d, From thread %d\n ", i, omp_get_thread_num());
result_1[i] = i;
}
hpxmp result:
Hello World #0, From thread 0
Hello World #4, From thread 2
Hello World #5, From thread 2
Hello World #1, From thread 0
Hello World #2, From thread 1
Hello World #3, From thread 1
openmp result:
Hello World #0, From thread 0
Hello World #2, From thread 1
Hello World #3, From thread 2
Hello World #1, From thread 0
Hello World #5, From thread 4
Hello World #4, From thread 3
The text was updated successfully, but these errors were encountered: