-
Notifications
You must be signed in to change notification settings - Fork 11
/
nvccOptions.txt
14 lines (7 loc) · 1.01 KB
/
nvccOptions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include
-ccbin: path to Visual Studio cl.exe
one of the includes is the path to the VC include folder
assumes Optix installed in the default folder
nvcc.exe -O3 -use_fast_math -I "C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.2.0\include" -I "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include" -I "." -m 64 -ptx -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64" optix.cu -o optix.ptx
nvcc.exe -O3 -use_fast_math -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64" -m 64 -ptx a.cu -o a.ptx
nvcc.exe -O3 -use_fast_math -D_FORCE_INLINES -I "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64" -m 64 a.cpp -o a