PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

new compiler gives error
Goto page Previous  1, 2, 3  Next
 
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: 6660
Location: The Portland Group Inc.

PostPosted: Fri Feb 22, 2013 2:39 pm    Post subject: Reply with quote

Quote:
Warning: Number of emulated threads (14) is less than available cpus (24)
This means that the number of threads that you're launching is very small (14) and the default is to use all cores. The solution is to set environment variable "OMP_NUM_THREADS=14" to limit the number of threads spawned.

That begs the question, why does your program use so few threads?

- Mat
Back to top
View user's profile
amitamritkar



Joined: 02 Oct 2009
Posts: 13

PostPosted: Fri Feb 22, 2013 2:55 pm    Post subject: Reply with quote

I use OMP_NUM_THREADS=1 by default. I changed it to OMP_NUM_THREADS=14 and tried running the code in emulator mode but still the same issue. I get 100s of warnings and then the code errors out with this message, Error: _mp_task_yield/_mp_task_sync does not work in this case.

This is a small test case which I am using to make sure that the new compiler runs without any issues and thus the small number of threads.

Let me repeat, this case runs without any problem with PGI version 10.6 on GPU. This is a large FORTRAN code with ~200K lines.

~Amit
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Feb 22, 2013 3:35 pm    Post subject: Reply with quote

Quote:
Let me repeat, this case runs without any problem with PGI version 10.6 on GPU. This is a large FORTRAN code with ~200K lines.
I understand but unfortunately without a reproducing example, issues like these are very difficult for me to determine. I simply don't have enough information and can only make guesses.

- Mat
Back to top
View user's profile
amitamritkar



Joined: 02 Oct 2009
Posts: 13

PostPosted: Fri Feb 22, 2013 4:42 pm    Post subject: Reply with quote

I think I can send you the tarball with the executable and the test case.

~Amit
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Feb 22, 2013 4:45 pm    Post subject: Reply with quote

That would be great. If it's too big to email, please FTP. See: https://www.pgroup.com/support/ftp_access.php

-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, 3  Next
Page 2 of 3

 
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