Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ordered Openmp
#include<stdio.h> #include<omp.h> void work(int k) { #pragma omp ordered printf(" %d with thread numb %d\n", k,omp_get_thread_num()); } void ordered_example(int lb, int ub, int stride) { int i; #pragma omp parallel for ordered for (i=lb; i<ub; i+=stride) { printf("%d with thread id %d\n",i,omp_get_thread_num()); work(i); } } int main() { ordered_example(0, 100, 5); return 0; }
run
|
edit
|
history
|
help
0
20171117_FUNCIONES
Area of a rectangular prism
Project 3 part 2 Book v1
Incometax problem v0.1
FunPointUnion
str_ptr_to_fumc_v2
A_141124arrayRepetidos
Max
Arrays Grtade and Toppers
1