|
| View previous topic :: View next topic |
| Author |
Message |
dcwarren
Joined: 18 Jun 2012 Posts: 29
|
Posted: Wed May 08, 2013 7:04 am Post subject: PGPROF "internal error: invalid thread id" |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu May 09, 2013 1:28 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|