PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

OpenMP: problem with flush

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
SRILS



Joined: 01 Jun 2005
Posts: 1

PostPosted: Wed Jun 01, 2005 8:06 am    Post subject: OpenMP: problem with flush Reply with quote

I tried to compile an OpenMP program with pgcc 5.1 on an AMD Opteron. A snippet from the code looks like:
Code:

while( sync[neighbor] == 0 ) {
#pragma omp flush
}

According to the OpenMP specification, this should be fine - it is even an excerpt from an example from the specification. However, if I look at the generated assembly code, it seems that the "flush" directive is ignored. As a result, the program encounters a deadlock, since the memory in sync[neighbor] is not read again after the flush. So my question is if the PGI compiler I used supports the "flush" directive or if I have misinterpreted the specifications.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Wed Jun 01, 2005 12:27 pm    Post subject: Reply with quote

Hi SRILS,

Unfortunately it's a bug (TPR #3499). We do have the issue characterized and should have a fix in a future release.

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group