PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

PGPROF "internal error: invalid thread id"

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
dcwarren



Joined: 18 Jun 2012
Posts: 29

PostPosted: Wed May 08, 2013 7:04 am    Post subject: PGPROF "internal error: invalid thread id" Reply with quote

I'm trying to profile some CUDA code (written in Fortran, if it makes a difference), and I know I need to use several flags at compilation and runtime as follows:
Code:
> pgfortran -o foo.exe -Minfo=ccff -Mcuda -ta=nvidia foo.f90
> pgcollect -cuda foo.exe < input.file

If I use only those flags, my code will run to completion, but I do not get a lot of useful information out of PGPROF when I try to profile the code. So the next step is to use the flags -Mprof=func or -Mprof=lines at compile time. However, when I run pgcollect, I get the following error:
Code:
> pgfortran -o foo.exe -Minfo=ccff -Mprof=[lines or func] -Mcuda -ta=nvidia foo.f90

> pgcollect -cuda foo.exe < input.file
Error: internal error: invalid thread id
target process has terminated, writing profile data
PGCOLLECT: Fatal Error: No samples: out of range

That's a whole lot of "error"s and colons to tell me that something went wrong, but I have no clue what that something is. Do I need to send an example to trs@pgroup.com?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu May 09, 2013 1:28 pm    Post subject: Reply with quote

Quote:
If I use only those flags, my code will run to completion, but I do not get a lot of useful information out of PGPROF when I try to profile the code.
The accelerator info gets shown in the bottom tab when the particular kernel is selected.

Quote:
So the next step is to use the flags -Mprof=func or -Mprof=lines at compile time. However, when I run pgcollect, I get the following error:
-Mprof and pgcollect can't be used together. They use two entirely separate profiling mechanisms (instrumented vs sampling).

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling 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