optix / windows

I am new to Optix,
I just want to know if it is possible to create an Optix project with visual studio on windows without Cmake
Any help Please

Yes it is, that’s what I do.
I don’t know that much about Cmake, but I guess the difference will be that you’ll have to manually add the paths to the OptiX includes and libs in VS.
In addition, you’ll have to change the CUDA compilation options so that it generates .ptx files.

Can you tell me the correct CUDA compilation options, because when I used the CUDA files from some SDK examples and tried to compile them I had a couple of error such as:
Error 12 error : Ptx assembly aborted due to errors
and the compiler thrown some exceptions
Should I compile it as a CUDA C/C++ or Custom Build tools?

As far as I remember, two important fields to set are :

  • For CUDA C/C++ --> Common --> NVCC Compilation Type, I set "Generate .ptx file -(ptx)".
  • For CUDA C/C++ --> Device --> Generate GPU Debug Information, I set "No"

You might also want to set the compute capability according to your device generation.

thank you it works