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
Multiple If statements v1
cstructCricket
base
hw 2
Assignment 5 part 2 v2
20171117_PITAGORAS
Is const really const?
Day Of The Programmer
Matrices de cadenas con *punteros
Project v0.07