Optix compile error

Hi,

I have optix 8, cuda 12.2, ubuntu 22 and Nvidia driver 580 on RTX 4070 ti. I’m getting an optix compile error when I am running any optix program. I attached the log for optix Hello example. Initially /usr/lib/x86_64-linux-gnu/libnvoptix.so.1 was missing but even after fixing that, optix hello is still giving me an error. This is all on a remote server, so I dont have root access. I just cant figure out why I’m getting this error because in the past I was able to run optix programs successfully. Any help into debugging this will be greatly appreciated.

[ 4][       KNOBS]: All knobs on default.

[ 4][   DISKCACHE]: Opened database: “/var/tmp/OptixCache_dmandara/optix7cache.db”
[ 4][   DISKCACHE]:     Cache data size: “0 Bytes”
[ 4][   DISKCACHE]: Cache miss for key: ptx-6624-key58c30ceb0f719e5f5f9ef6f305f0e77c-sm_89-rtc1-drv580.126.09

[ 4][    COMPILER]: Info: Pipeline parameter “params” size is 16 bytes

[ 2][    COMPILER]: COMPILE ERROR: Module compilation failed
Info: Module Statistics
payload values        :          0
attribute values      :          0
Info: Properties for entry function “__raygen__draw_solid_color”
semantic type                :                 RAYGEN
trace call(s)                :                      0
continuation callable call(s):                      0
basic block(s)               :                      1
instruction(s)               :                     75
Info: Compiled Module Summary
non-entry function(s):     0
basic block(s)       :     0
instruction(s)       :     0

Caught exception: OPTIX_ERROR_INTERNAL_COMPILER_ERROR: Optix call ‘optixModuleCreate( context, &module_compile_options, &pipeline_compile_options, input, inputSize, LOG, &LOG_SIZE, &module )’ failed: /home/min/a/dmandara/NVIDIA-OptiX-SDK-8.0.0-linux64-x86_64/SDK/optixHello/optixHello.cpp:150)
Log:
COMPILE ERROR: Module compilation failed
Info: Module Statistics
payload values        :          0
attribute values      :          0
Info: Properties for entry function “__raygen__draw_solid_color”
semantic type                :                 RAYGEN
trace call(s)                :                      0
continuation callable call(s):                      0
basic block(s)               :                      1
instruction(s)               :                     75
Info: Compiled Module Summary
non-entry function(s):     0
basic block(s)       :     0
instruction(s)       :     0
Info: Pipeline parameter “params” size is 16 bytes


Hi @dmandara, welcome back!

It’s alarming that libnvoptix.so.1 was missing, this clue suggests that this driver maybe came from somewhere non-standard. How did you fix that issue? It’s possible that the internal compiler error could come from mixing a version of libnvoptix.so.1 that doesn’t match the exact driver version installed. I would recommend starting with a clean driver reinstall and making sure that it comes with the OptiX library before doing any other triage. Since you don’t have root, finding out where the machine admin is getting the display driver and how they’re installing it might be useful.


David.