Getting 'cannot open source file "nvtx3/nvToolsExt.h" '

When I run this image and include this line in my code #include <nvtx3/nvToolsExt.h> I get the following error:

"jacobi.c", line 22: catastrophic error: cannot open source file "nvtx3/nvToolsExt.h"
  #include <nvtx3/nvToolsExt.h>

1 catastrophic error detected in the compilation of "jacobi.c".
Compilation terminated

Is there a way to modify the image so I don’t get this error?

Maybe changing the complier from nvc++ to nvcc will help…

Or the give the correct compile flag, for example here is mine one in container:

-lm -I/opt/nvidia/hpc_sdk/Linux_x86_64/23.5/cuda/11.8/include -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.5/cuda/11.8/lib64 -lnvToolsExt