OpenMP 4.0 task dependencies of a pointer (OmpSs style) -


i want specify #pragma omp task depend(...) clause on variable reference through pointer. possible in ompss , looks like:

#pragma omp task in(*var1) out(*var2) 

basically want in openmp 4.0, following code:

#pragma omp task depend(in: *var1) depend(out: *var2) 

produces following error :

error: expected identifier before ‘*’ token     #pragma omp task depend(in: *var1) depend(out: *var2) 

how can done in openmp 4.0?

as per hristo iliev's comment, correct workaround consider pointers arrays of size 1 :

#pragma omp task depend(in: var1[:1]) depend(out: var2[:1]) 

the array section syntax arr[lower bound : length] allowed in depend pragmas sets lower bound 0 if omitted, , length array size if omitted (which not permitted pointer types).


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -