Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write #pragma openmp in multiple lines?

Tags:

c

pragma

openmp

I have a long list of variable for private and share. How do I write in multiple lines? I am repeating the question here, just because stackoverflow wouldn't let me submit the question otherwise.

like image 404
nineties Avatar asked Jul 14 '13 23:07

nineties


1 Answers

Pragmas are interpreted by the compiler after preprocessing, so you can just use the normal line-continuation mechanism:

#pragma omp parallel

can become:

#pragma \
omp \
parallel
like image 107
markhahn Avatar answered Nov 18 '22 04:11

markhahn