From e025768244410b65a4594c52173e0d48b6872547 Mon Sep 17 00:00:00 2001 From: ScorpionInc <19487319+ScorpionInc@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:23:48 +0200 Subject: [PATCH 1/2] Add example for Clang building Adds an example for Clang building. Adds a comment --- src_CUDA/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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: From dfcd20292766a01595f71a66a90da91ac03d816f Mon Sep 17 00:00:00 2001 From: ScorpionInc <19487319+ScorpionInc@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:27:10 +0200 Subject: [PATCH 2/2] Adds Example for default CL version Adds an example to help people compile with just their default installed version of OpenCL --- src_OpenCL/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: