Creating an RTProgram from CUDA .obj file ?
Is it possible to create an RTProgram from a .cu file compiled into an object file ? Currently we're having to use a custom tool that copies generated .ptx files into strings in c++ so that we can actually compile them into our library binary. We do this so we don't distribute our .ptx files. This works but I'm just curious if there's a way to create programs from already compiled .cu code, as I know it's possible to compile .cu to .obj.
Is it possible to create an RTProgram from a .cu file compiled into an object file ? Currently we're having to use a custom tool that copies generated .ptx files into strings in c++ so that we can actually compile them into our library binary. We do this so we don't distribute our .ptx files.

This works but I'm just curious if there's a way to create programs from already compiled .cu code, as I know it's possible to compile .cu to .obj.

#1
Posted 12/07/2017 12:09 PM   
If you mean SASS microcode in cubins, then no. The OptiX API needs PTX source code as input which gets rewritten and given to the CUDA driver for assembly. Described here in 2010. It got a little more sophisticated in the meantime. [url]http://research.nvidia.com/publication/optix-general-purpose-ray-tracing-engine[/url]
If you mean SASS microcode in cubins, then no.

The OptiX API needs PTX source code as input which gets rewritten and given to the CUDA driver for assembly.
Described here in 2010. It got a little more sophisticated in the meantime.
http://research.nvidia.com/publication/optix-general-purpose-ray-tracing-engine

#2
Posted 12/07/2017 12:57 PM   
Scroll To Top

Add Reply