OpenMP issue: a threadprivate pointer doen't work when it has the dimension attribute

tim18
Total Points:
68,827
Status Points:
68,827
Black Belt
March 3, 2009 6:27 AM PST
Rate
 
#2 Reply to #1
As no one else has bitten, I'll say that I don't know how the result of this code could be predicted.  Do you mean, is it a compiler bug that it doesn't give more diagnostics?  OpenMP is notorious for not checking at compile time.  That's one of the reasons for the Intel Thread Checker.
|1 |I/O      |Error |1 |omp     |I/O operation at "ym2.f90":4 |"ym2.f9|"ym2.f9|
|  |data-race|      |  |parallel|conflicts with a prior I/O   |0":4   |0":4   |
|  |         |      |  |region  |operation at "ym2.f90":4     |       |       |
|1 |I/O      |Error |1 |omp     |I/O operation at "ym1.f90":4 |"ym1.f9|"ym1.f9|
|  |data-race|      |  |parallel|conflicts with a prior I/O   |0":4   |0":4   |
|  |         |      |  |region  |operation at "ym1.f90":4     |       |       |



Intel Software Network Forums Statistics

8484 users have contributed to 31619 threads and 100691 posts to date.
In the past 24 hours, we have 34 new thread(s) 123 new posts(s), and 181 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member monkeybrains