CompileFromFile

May 10, 2013 at 9:04 PM
Edited May 10, 2013 at 9:14 PM
Hi there i have been trying to use CompileFromFile to compile CU files but have lots of errors could you please upload an example..

many thanks
Coordinator
May 13, 2013 at 3:17 PM
From what I remember the raw optix c++ api is fairly finicky about compiling at run-time. I'll look into it this weekend. But I'd suggest using the offline compiler like the samples use.
May 13, 2013 at 3:30 PM
thanks kyle
i managed to compile it fine via the command line using this syntax
nvcc -m32 -arch sm_11 -I. -I"C:\Program Files\NVIDIA Corporation\OptiX SDK 2.5.0\include" -Xopencc "-woffall" --ptx -o d:\optest\phong_floor.ptx phong_floor.cu