Preventing NVRTC from looking for header files on disk

Hi there

I’m currently using NVRTC in my application, and am supplying all code via nvrtcCreateProgram()
ie

  • code via the “buffer” argument
  • headers via the “numHeaders”, “headers” and “includeNames” arguments

Recently I have been burnt by NVRTC looking + finding include files on disk when not supplied as arguments in C++. The problem is that sometimes those files exist (ie on a developers machine) but other times not (ie on a users machine). This can create a problem with debugging, testing and deployment.

Is it possible to pass an argument to NVRTC to disable this behaviour of looking on disk for header files? (via C++ would be ideal, rather than some environment variable…)
If not possible, can we ask for it as a feature request?

Thanks very much
Brian