PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

"Profiling single-threaded target program" for mul

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



Joined: 26 Jun 2012
Posts: 30

PostPosted: Sun Apr 14, 2013 5:53 pm    Post subject: "Profiling single-threaded target program" for mul Reply with quote

When I make an OpenMP program with 4 threads and then use pgcollect I get:

ben@gibbs:~/slabmp$ pgcollect slab
Profiling single-threaded target program

Even though its an OpenMP program (compiled with -mp) and using 4 threads (OMP_NUM_THREADS=4). I know it is using the multiple threads because I am getting a speedup.

However, it thinks it is a single-threaded program and does not show multiple threads in the profiler.
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 82
Location: The Portland Group, Inc.

PostPosted: Mon Apr 15, 2013 4:43 pm    Post subject: Reply with quote

It might be a system configuration issue. You shouldn't have to do anything special to get multi-thread profiles from pgcollect.

What release are you using?

What operating system are you running on?

Would you please try running your program with pgdbg to see if you get any more interesting messages?
Code:
pgdbg -text slab
Back to top
View user's profile
brush



Joined: 26 Jun 2012
Posts: 30

PostPosted: Tue Apr 16, 2013 4:38 pm    Post subject: Reply with quote

13.2

Ubuntu 12.04 LTS

I don't seem to get any strange messages when I ran pgdb, but I didn't do much (just ran).

ben@gibbs:~/slabmp$ pgdbg -text slab
PGDBG 13.2-0 x86-64 (Workstation, 8 Process)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2013, STMicroelectronics, Inc. All Rights Reserved.
Loaded: /home/ben/slabmp/slab


It's really not that important to what I'm doing at the moment, but thought I may have just been missing a compiler option or something. Good to know that does not seem to be the case.
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 © 2001, 2002 phpBB Group