This project is read-only.


May 10, 2013 at 10:04 PM
Edited May 10, 2013 at 10: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
May 13, 2013 at 4: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 4: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