Last active
March 5, 2016 14:43
-
-
Save jangedoo/520dd86270170232469c to your computer and use it in GitHub Desktop.
Static Scheduling in OpenMP with chunk size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void static_scheduling(){ | |
printf("Static Scheduling demo...\n"); | |
int N = 30; | |
int i; | |
#pragma omp parallel for num_threads(7) schedule(static, 2) | |
for (i = 0; i < N; i++){ | |
printf("Rank is %d, i is %d\n", omp_get_thread_num(), i); | |
} | |
printf("Static Scheduling demo END...\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment