Add makefile targets for coin miners and final testing

Co-authored-by: RubenCGomes <116815718+RubenCGomes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-02 23:20:20 +00:00
parent d0f5425f78
commit e57678f067
3 changed files with 13 additions and 1 deletions

View File

@ -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

Binary file not shown.

Binary file not shown.