diff --git a/makefile b/makefile index a295547..c3c2381 100644 --- a/makefile +++ b/makefile @@ -42,6 +42,7 @@ CUDA_ARCH = sm_75 clean: rm -f sha1_tests rm -f sha1_cuda_test sha1_cuda_kernel.cubin + rm -f coin_miner_cpu coin_miner_simd coin_miner_cuda rm -f a.out @@ -63,4 +64,15 @@ sha1_cuda_test: aad_sha1_cuda_test.c sha1_cuda_kernel.cubin aad_sha1.h aad_data_ sha1_cuda_kernel.cubin: aad_sha1_cuda_kernel.cu aad_sha1.h makefile nvcc -arch=$(CUDA_ARCH) --compiler-options -O2,-Wall -I$(CUDA_DIR)/include --cubin $< -o $@ -all: sha1_tests sha1_cuda_test sha1_cuda_kernel.cubin +# +# DETI coin miners +# + +coin_miner_cpu: aad_coin_miner_cpu.c aad_data_types.h aad_utilities.h aad_sha1.h aad_sha1_cpu.h aad_vault.h makefile + cc -march=native -Wall -Wshadow -Werror -O3 $< -o $@ + +coin_miner_simd: aad_coin_miner_simd.c aad_data_types.h aad_utilities.h aad_sha1.h aad_sha1_cpu.h aad_vault.h makefile + cc -march=native -mavx2 -Wall -Wshadow -Werror -O3 $< -o $@ + + +all: sha1_tests sha1_cuda_test sha1_cuda_kernel.cubin coin_miner_cpu coin_miner_simd diff --git a/sha1_cuda_kernel.cubin b/sha1_cuda_kernel.cubin deleted file mode 100644 index 957c529..0000000 Binary files a/sha1_cuda_kernel.cubin and /dev/null differ diff --git a/sha1_tests b/sha1_tests deleted file mode 100755 index b3ee06c..0000000 Binary files a/sha1_tests and /dev/null differ