pbrt-v4 icon indicating copy to clipboard operation
pbrt-v4 copied to clipboard

pbrt_exe (debug) crashes after driver upgrade

Open kyamant opened this issue 3 years ago • 2 comments

Following an upgrade of Nvidia driver to 511.65, pbrt_exe (debug version) crashes on the call:

OPTIX_CHECK_WITH_LOG(optixModuleCreateFromPTX(
                             optixContext, &moduleCompileOptions, &pipelineCompileOptions,
                             ptx, strlen(ptx), log, &logSize, &optixModule),
                         log);

in OptixModule OptiXAggregate::createOptiXModule() of aggregate.cpp. Release version works.

kyamant avatar Feb 02 '22 17:02 kyamant

Confirmed here as well, both on Windows with 511.65 and on Linux with 510.47.03. :-(. I've filed a bug internally at nvidia about this.

It's possible to workaround the issue by adding the line

    moduleCompileOptions.debugLevel = OPTIX_COMPILE_DEBUG_LEVEL_NONE;

in OptiXAggregate::createOptiXModule() in src/pbrt/gpu/aggregate.cpp though admittedly that is defeating the purpose of compiling with debugging information...

mmp avatar Feb 04 '22 14:02 mmp

There is indeed a bug in the driver and a fix will be forthcoming in a future driver release. Sorry for the trouble. In the meantime I've pushed that workaround...

mmp avatar Feb 09 '22 21:02 mmp