I spent a long time on this, and still could not figure out the reason why this is happening.
This is what I get.
terminate called after throwing an instance of 'optix::Exception' what(): File not found (Details: Function "RTresult _rtProgramCreateFromPTXFile(RTcontext_api*, const char*, const char*, RTprogram_api**)" caught exception: , )
I am absolutely sure that the paths to the PTX files are correct since my Optix program successfully runs for most of the time. However, this exception pops up like once every ten times when I try to create a context and compile the ptx programs.
Some background information if that helps: I am using Optix 3.0 and CUDA 5.0 on Linux Mint 15. Also, I dropped all of the SDK code except “CUDA” and “CMake”.
Thanks very much and I appreciate your help in advance.