nvToolsExt linking with pgfortran problems

Hello,

Is it possible to link the nvidia extension library called nvToolsExt with pgfortran?

The following is an example of linking the module ext_lib together with a pgfortran main driver.
This module contains calls to the nvToolsExt library.

pgfortran -o load_lib_all.exe driver_all.o -i8 -Mcuda=cuda6.0 -acc -L. -lext_lib

These are the error messages which I get:

./libext_lib.so: undefined reference to nvtxRangePop' ./libext_lib.so: undefined reference to nvtxRangePushA’
pgacclnk: child process exit status 1: /usr/bin/ld

Thanks,
Barak

Yes, you need to add the location of the nvToolsExt library and the library:
-L/usr/local/cuda/lib64 -lnvToolsExt