1@ECHO OFF 2 3SET HS_GEN=..\..\..\..\..\spinel\bin\x64\Debug\hs_gen 4 5:: --- 32-bit keys --- 6 7:: %HS_GEN% -v -a "cuda" -D HS_NVIDIA_SM35 -t 1 -w 32 -r 32 -s 49152 -S 65536 -b 32 -m 1 -M 1 -f 1 -F 1 -c 1 -C 1 -p 1 -P 1 -z 8%HS_GEN% -v -a "cuda" -D HS_NVIDIA_SM35 -t 1 -w 32 -r 16 -s 32768 -S 32768 -b 16 -m 1 -M 1 -p 1 -P 1 -f 0 -F 0 -c 0 -C 0 -z 9 10:: 11:: remove trailing whitespace from generated files 12:: 13 14SET HS_SRC=hs_cuda_u32.cu 15 16clang-format -style=Mozilla -i %HS_SRC% 17 18sed -i 's/[[:space:]]*$//' hs_cuda_config.h 19sed -i 's/[[:space:]]*$//' %HS_SRC% 20 21:: 22:: preprocess and build kernels 23:: 24:: if you're debugging you'll want to preprocess all the macros 25:: 26 27REM SET HS_SRC=hs_cuda.pre.cu 28 29REM cl -I . -EP hs_cuda.cu -P -Fi"%HS_SRC%" || goto :error 30REM clang-format -style=Mozilla -i %HS_SRC% || goto :error 31REM dos2unix -q %HS_SRC% || goto :error 32 33:: 34:: build kernels 35:: 36 37@ECHO ON 38 39nvcc -I ../../../.. -use_fast_math -res-usage -cubin -arch sm_35 %HS_SRC% 40