I begin to play Optix recently, but there is a problem making me disheartened,it’s about a function.
RTresult rtProgramCreateFromPTXFile(RTcontext context,const char* filename,const char* program_name,RTprogram* program)
In this function,there is a argument “filename”,it saves PTX code related to rtProgram.
At the moment,I create an Optix project with visual studio by copying examples from Optix SDK,It works well. Now but I want to create my own project,which means I will write a .cu file , but how can I get PTX file from .cu file? I have tried to create a PTX file like this: Open a project created by VS2010, select the .cu file file,for example, "draw_color.cu" . right click ,and select compile option, it ends without error,but the PTX file didn't appear, I don't know why. So I hope to know the right procedure to create a PTX file for a Program.Thank you