"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.

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?

pgdbg -text slab

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.