| View previous topic :: View next topic |
| Author |
Message |
brush
Joined: 26 Jun 2012 Posts: 30
|
Posted: Sun Apr 14, 2013 5:53 pm Post subject: "Profiling single-threaded target program" for mul |
|
|
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 |
|
 |
donb
Joined: 20 Jul 2004 Posts: 82 Location: The Portland Group, Inc.
|
Posted: Mon Apr 15, 2013 4:43 pm Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
brush
Joined: 26 Jun 2012 Posts: 30
|
Posted: Tue Apr 16, 2013 4:38 pm Post subject: |
|
|
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 |
|
 |
|