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
Media de 3 numeros
Ascii contrasena segura
avance 2 guía 4
150109_RecursividadParImpar
Array Incrementing by 1
lab2
LinkedListTest
6 ejercicio trabajo semanal 4
rsqrt from 0
18BCE2182 ASSESS_1 Q1-1