Four years ago, I added Optix ray tracing to me OpenGL realtime dance animation program. I used Optix 3.0 and Cuda 5.0. Recently, with a newer driver, I noticed that my program no longer supports ray tracing. I am attempting to upgrade the Optix/Cuda libraries, but have run into problems.
My PC has a Quadro K2000m with a 354.13 version driver. The OS is Windows 7 64 bit. I choose Optix 3.7/Cuda 6.5 in order to maintain 32 bit compatibility with other third party libraries I need to link in.
When I get to
rtResult = rtProgramCreateFromPTXFile(rtContext, rtHDLightingProgramFileName, “ClosestHitRadiance”, &rtClosestHitProgram);
I get this error
Load LightingProgram for ClosestHitRadiance: Parse error (Details: Function “_rtProgramCreateFromPTXFile” caught exception: (string): error: Cannot parse input PTX string
HDLighting.ptx, line 7; : error : Unsupported .version 4.1; current version is ‘3.1’
I compile my .cu programs with this command
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc” -m32 -ptx -I “C:\ProgramData\NVIDIA Corporation\OptiX SDK 3.7.0\include” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” -o HDLighting.ptx HDLighting.cu
The top of HDLighting.ptx is
// Generated by NVIDIA NVVM Compiler
// Compiler built on Fri Jul 25 04:36:16 2014 (1406288176)
// Cuda compilation tools, release 6.5, V6.5.13
Can anyone think of what I might be doing wrong? It’s been a while since I wrote the ray tracing code and my memory is a bit rusty on some of the details.