PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Concurrent reads in stl vector (pgCC)

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



Joined: 29 Nov 2005
Posts: 8

PostPosted: Thu Mar 30, 2006 1:40 pm    Post subject: Concurrent reads in stl vector (pgCC) Reply with quote

My program has multiple threads reading (not writing) elements from std::vector using operator[]. All it is doing is assigning a temporary variable to the requested element of the vector. When I comment out this read, everything works fine. When it's in the code, however, the program runs for an arbitrary amount of time and then quits with the following output:

Code:
Assertion failed in file "../../port/edgsrc.3.3/throw.c", line 1192
Aborted


I am using version 5.2 of the compiler. Any ideas?

Scott Kilpatrick
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 108

PostPosted: Thu Mar 30, 2006 2:43 pm    Post subject: Reply with quote

There have been alot of changes in our C++ compiler since 5.2. Can you try it with 6.0 or 6.1?
Back to top
View user's profile
skilpat



Joined: 29 Nov 2005
Posts: 8

PostPosted: Thu Mar 30, 2006 3:34 pm    Post subject: Reply with quote

Unfortunately, the lab I work in seems to be fixated on using outdated software, so I don't think that's a possibility.

Scott
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