diff --git a/src_CUDA/Makefile b/src_CUDA/Makefile index e8c24e1..e6ee263 100755 --- a/src_CUDA/Makefile +++ b/src_CUDA/Makefile @@ -1,6 +1,9 @@ # 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: diff --git a/src_OpenCL/Makefile b/src_OpenCL/Makefile index 1e000e2..fb68572 100755 --- a/src_OpenCL/Makefile +++ b/src_OpenCL/Makefile @@ -7,7 +7,9 @@ MAKE_INCLUDE=$(COMMON_INCLUDE) $(NVIDIA_INCLUDE) -cl-std=CL1.2 -O3 all: gcc $(MAKE_INCLUDE) $(FLAGS) -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL -# clang -framework OpenCL -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c + #To use default CL version uncomment below(expect alot of warnings): + #gcc $(COMMON_INCLUDE) $(NVIDIA_INCLUDE) -O3 $(FLAGS) -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL + #clang -framework OpenCL -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c clean: