PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

Problems on OpenMP and multi-GPU
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Wed Aug 15, 2012 3:28 pm    Post subject: Reply with quote

Hi Weixiao,

Since I don't know your algorithm it hard to give you good advice on how to reorganize your code. However, hard coding the number of OpenMP threads is a poor choice. Ideally you want to decompose your problem amongst an arbitrary number of threads.

Can the do iPart loop be divided up amongst the threads? If I read your code correctly, you have each threads execute every part but then divide up the domain within the kernel itself. If you can do the domain decomposition higher up, then your kernel can just work on it portion of the domain.

- 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
Goto page Previous  1, 2
Page 2 of 2

 
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