Hi, when testing interoperability with MDL in OptiX 6.0, I tried to change compilation flag in mdl_helper.cpp:
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?