bitcracker/src_CUDA/Makefile
ScorpionInc e025768244
Add example for Clang building
Adds an example for Clang building. Adds a comment
2022-09-28 02:23:48 +02:00

12 lines
647 B
Makefile
Executable File

# Please add right gencode for older CUDA/GPU: -gencode arch=compute_35,code=sm_35 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60
bitcracker_cuda:
#To use Clang compiler uncomment below:
#nvcc -ccbin clang-11 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -Xptxas -v -o bitcracker_cuda main.cu cuda_attack.cu utils.cu w_blocks.cu
#Ensure CUDA has GCC/G++ linked properly for this to work
nvcc -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -Xptxas -v -o bitcracker_cuda main.cu cuda_attack.cu utils.cu w_blocks.cu
clean:
rm -rf *.o
rm -rf ../build/bitcracker_cuda