forked from jesterKing/CCSycles
-
Notifications
You must be signed in to change notification settings - Fork 6
/
cudaenv.bat
55 lines (46 loc) · 1.29 KB
/
cudaenv.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
REM @ECHO OFF
ECHO me is %me%
ECHO parent is %parent%
SET nvcc=C:\CUDA8\bin\nvcc.exe
SET nvcc9=C:\CUDA9\bin\nvcc.exe
SET nvcc10=C:\CUDA10\bin\nvcc.exe
SET nvcc11=C:\CUDA11\bin\nvcc.exe
SET typechoice=%1
SET _optix=0
IF "%typechoice%"=="optix" (
SET _optix=1
)
SET _apptype=0
IF "%typechoice%"=="standalone" (
SET _apptype=1
SHIFT
)
IF "%typechoice%"=="rhino" (
SET _apptype=1
SHIFT
)
IF %_apptype% EQU 1 (
IF "%typechoice%"=="standalone" (
SET cyclesroot=%parent%
SET cyclesout=%parent%
) else (
SET cyclesroot=%parent%
SET cyclesout=%parent%..\..\..\..\..\big_libs\RhinoCycles\
)
) else (
SET cyclesroot=%parent%
SET cyclesout=%parent%..\..\..\..\..\big_libs\RhinoCycles\
)
IF NOT EXIST "%cyclesroot%/lib" (
MKDIR "%cyclesroot%/lib"
)
SET cudaversion=11
SET cudaversion75=8
SET cudaversion91=9
SET cudaversion10=10
SET cudaversion11=11
SET shadermodelnum=%1
REM SET definitions="-DCCL_NAMESPACE_BEGIN= -DCCL_NAMESPACE_END= -DNVCC -D__NO_CAMERA_MOTION__ -D__NO_OBJECT_MOTION__ -D__NO_HAIR__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_DENOISING__"
SET definitions=-DCCL_NAMESPACE_BEGIN= -DCCL_NAMESPACE_END= -DNVCC -D__NO_CAMERA_MOTION__ -D__NO_OBJECT_MOTION__ -D__NO_DENOISING__
SET optixdefinitions=--ptx --use_fast_math
SET optixinclude=OptiX\include