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.

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.