Hi, when testing interoperability with MDL in OptiX 6.0, I tried to change compilation flag:
MIHandle<ICompiled_material> compiled_material( material_instance->create_compiled_material( IMaterial_instance::DEFAULT_OPTIONS, m_execution_context.get()));
MIHandle<ICompiled_material> compiled_material( material_instance->create_compiled_material( IMaterial_instance::CLASS_COMPILATION, m_execution_context.get()));
With all other *.cpp and *.cu files unchanged. Then I ran example OptiXMDLSphere. Programs were created, context validation went smoothly and in the first frame I had an error:
OptiX Error: 'Unknown error (Details: Function "RTresult _rtContextLaunch2D(RTcontext, unsigned int, RTsize, RTsize)" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address)' terminate called after throwing an instance of 'optix::Exception' what(): Unknown error
Everything works fine, when I compile program with instance compiler. Could you give me some advice what should I change in order to get class compilation working?
Current setup information:
Ubuntu 18.04.2 LTS
Driver Version: 430.26
CUDA Version: 10.2
GeForce RTX 2080
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
I posted the same question in OptiX forum. I hope we can figure out what is going on.