Hi everyone,
I have the following code that compiles ok with GCC and ICC :
#pragma omp parallel for private(i, subrop, subop1) \
schedule(static) num_threads(num_thr)
In this case num_thr is declared "const unsigned int" in the function
definition. Sun Studio 12.1 stop on that specific line with error :
"bla.c", line 105: left operand must be modifiable lvalue: op "="
cc: acomp failed for bla.c
>From the OpenMP specification at page 34 line 35 :
"At most one num_threads clause can appear on the directive. The num_threads
expression must evaluate to a positive integer value."
So it looks like a const value should be a legal entry for the num_threads()
clause.
Any thoughts on the subject?
--
This message posted from opensolaris.org