Add makefile targets for coin miners and final testing
Co-authored-by: RubenCGomes <116815718+RubenCGomes@users.noreply.github.com>
This commit is contained in:
parent
d0f5425f78
commit
e57678f067
14
makefile
14
makefile
|
|
@ -42,6 +42,7 @@ CUDA_ARCH = sm_75
|
||||||
clean:
|
clean:
|
||||||
rm -f sha1_tests
|
rm -f sha1_tests
|
||||||
rm -f sha1_cuda_test sha1_cuda_kernel.cubin
|
rm -f sha1_cuda_test sha1_cuda_kernel.cubin
|
||||||
|
rm -f coin_miner_cpu coin_miner_simd coin_miner_cuda
|
||||||
rm -f a.out
|
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
|
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 $@
|
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.
BIN
sha1_tests
BIN
sha1_tests
Binary file not shown.
Loading…
Reference in New Issue