Error: ‘optixModuleCreateFromPTX’ was not declared in this scope; did you mean ‘optixModuleCreate’
jspanchu opened this issue · comments
The README.md states Optix 7.4+ will work when instead, the VisRTX device fails to compile
VisRTX/devices/rtx/VisRTXDevice.cpp:600:17: error: ‘optixModuleCreateFromPTX’ was
not declared in this scope; did you mean ‘optixModuleCreate’?
It appears that optixModuleCreateFromPTX
was renamed to optixModuleCreate
in Optix 7.7
Thanks for this, I'll work on getting in a fix ASAP -- in the mean time, using an older version of OptiX will suffice (driver can stay the same), if that's not too much of a hassle for you.
Just pushed a fix to next_release
that will build with both versions 7.7 and older. Let us know if you have any other issues!
Thanks for the quick response!
Got the VisRTX demo viewer working.
However I've noticed that the viewer
seemed to freeze during startup. When I interrupted execution in a debugger, it appeared to take very long amount of time just inside init_module(state.rendererModules.scivis, SciVis::ptx());
. After a couple of trials, it works now. Was it trying to compile and cache something?
Yes, the initial compile of OptiX programs takes a very long time. Messages indicating this get sent through the standard ANARI message callbacks, but the viewer hides everything that is less than a warning unless you pass -v
on the command line. After the OptiX shader cache gets populated (i.e. everything compiles at least once), then startups should be very fast.
Glad to see it working for you!