problem setting language dialect in NVRTC in Optix7 using vs 2019

Howdy,

I’m trying to use NVRTC to generate Ptx files. I’m using the basic code from the Optix7 SDK samples

The call to nvrtcCompileProgram() results in this error

C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.0.0/include/optix_7_device.h(36): catastrophic error: #error directive: Device code for OptiX requires at least C++11. Consider adding “–std c++11” to the nvcc command-line.

If I add the language option like thie

// NVRTC compiler options
#define CUDA_NVRTC_OPTIONS
“-arch”,
“compute_30”,
“-use_fast_math”,
“-lineinfo”,
“-default-device”,
“-rdc”,
“true”,
“-std”,
“c++11”,
“-D__x86_64”,

I get this error

NVRTC Compilation failed.
nvrtc: error: unrecognized option -std found

Anybody know what I’m doing wrong?

Try “-std=c++11”