Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Hello w
Pointer arithmatic
3.1.2 Matrix add/sub file concept
CremovePointFun
Lab 6 mb
150116_OrdenMatriz
PROTOTIPO PREGUNTA 1 DE GUÍA 4
pointer example 3
18BCE2182 ASSESS_1 Q2-2
Leap year
Please log in to post a comment.