PGPROF not working

When trying to use pgprof to do CPU profiling, I get the following error.

The code works fine without pgprof, and also it gives GPU profiling information. But this only happens when I switch on CPU profiling.

pgprof --cpu-profiling on ./main.Linux.PGI.debug.acc.atlas.3d.exe inputs_3d



[gn012:14395] *** Process received signal ***
[gn012:14395] Signal: Segmentation fault (11)
[gn012:14395] Signal code: Invalid permissions (2)
[gn012:14395] Failing at address: 0x800000000
[gn012:14395] [ 0] /lib64/libpthread.so.0[0x316ee0f710]
[gn012:14395] [ 1] /tmp/tmpxft_00003839_00000000-0/libprofileInterceptor.so(+0x1017d5)[0x7ffff7d967d5]
[gn012:14395] [ 2] /tmp/tmpxft_00003839_00000000-0/libprofileInterceptor.so(+0x101097)[0x7ffff7d96097]
[gn012:14395] [ 3] /tmp/tmpxft_00003839_00000000-0/libprofileInterceptor.so(+0x100ce7)[0x7ffff7d95ce7]
[gn012:14395] [ 4] /tmp/tmpxft_00003839_00000000-0/libprofileInterceptor.so(+0x18db6)[0x7ffff7caddb6]
[gn012:14395] [ 5] /tmp/tmpxft_00003839_00000000-0/libprofileInterceptor.so(+0x18eef)[0x7ffff7cadeef]
[gn012:14395] [ 6] /lib64/libpthread.so.0[0x316ee0f710]
[gn012:14395] [ 7] /usr/local/pgi-2016/linux86-64/2016/cuda/7.5-pgprof/lib64/libcuinj64.so(+0x1be097)[0x7fffa3d1c097]
[gn012:14395] [ 8] [0x7fffa77102c0]
[gn012:14395] *** End of error message ***