Skip to content

Small makefile change #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src_CUDA/Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 3 additions & 1 deletion src_OpenCL/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down