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
macaddress
AVANCE DE PREGUNTA 5
CPTTRN_2
Prgm
if (strcmp(abb, "lol")==0 || strcmp(abb, "LOL")==0 || )
es collar
Project 3 Part 1 v1.1
formatting_input_and_output
The endless numbers.
Spring 2017 Project 2 v.05