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