PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Hoard Allocator

 
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: Tue Apr 11, 2006 3:21 pm    Post subject: Hoard Allocator Reply with quote

Is there any way to use the Hoard allocator (ww.hoard.org) for C++ with pgCC? I have been trying to get it to work but to no avail.

I read that using Hoard helps if you use the STL in multithreaded applications. Is there anything else I can do to speed up the STL implementation with threads? My application is currently twice as slow when computing with one thread per CPU (Opteron system) than it is with just one CPU doing all the computing. I thought maybe it could have something to do with it heavily relying on hash maps, vectors, etc.

Scott
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Apr 13, 2006 4:28 pm    Post subject: Reply with quote

Hi Scott,

I was able to free up some time today to see if I could get Hoard working, but like you, encountered problems. I had trouble determining how to build it since there isn't a top level "./compile" script as the build instructions on the web site indicate. I tried compiling by hand using g++, but encountered many syntax errors. I got farther when I tried compiling on a Redhat 7.3 system, but still no luck. The web site seems to indicate that Redhat 6.0/6.1 are the only supported Linux systems? Please let us know if anyone has had better luck than we've had.

I personally have not done a lot of multi-threaded C++ programming so may not be the best of help here. However, I do know that the STL and libC are not protected for reentrant execution. Could the slow down be attributed to the use of mutexes in your code which are used to manage your shared data objects?

- 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