OptiX 7.3 optixMotionGeometry sample cuda compile errors

Thanks for the new OptiX 7.3 update! I was especially pleased to see the new VolumeViewer sample using nanovdb.

Unfortunately, some of the samples don’t run out of the box on my setup. Here’s a sample of some of the errors when NVRTC tries to compile “optixMotionGeometry.cu”. I believe the problem is that NVRTC cannot compile code with anonymous struct inside a union.

Caught exception: NVRTC Compilation failed.
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(89): warning: declaration does not declare anything
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(92): warning: declaration does not declare anything
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(89): warning: types cannot be declared in anonymous unions
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(92): warning: types cannot be declared in anonymous unions
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(99): error: identifier “p0” is undefined
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(100): error: identifier “p1” is undefined
C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.3.0/SDK/optixMotionGeometry/optixMotionGeometry.cu(101): error: identifier “p2” is undefined

=======================================
Windows 10 Home
OptiX 7.3
GeForce RTX 2070 Super with driver 466.11
Cuda 11.2
Visual Studio Community 2019 Version 16.9.4

You’re right. Sorry about that, we are fixing up the SDK this week.

You can disable NVRTC by setting the cmake variable CUDA_NVRTC_ENABLED to OFF. Then the new sample should compile.


David.