forked from tpruvot/CudaMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
76 lines (59 loc) · 3.16 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
if WANT_JANSSON
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif
EXTRA_DIST = autogen.sh README.txt LICENSE.txt \
cudaminer.sln cudaminer.vcxproj cudaminer.vcxproj.filters \
compat/gettimeofday.c compat/getopt/getopt_long.c cpuminer-config.h.in
SUBDIRS = compat
bin_PROGRAMS = cudaminer
cudaminer_SOURCES = elist.h miner.h compat.h \
compat/inttypes.h compat/stdbool.h compat/unistd.h \
compat/sys/time.h compat/getopt/getopt.h \
cpu-miner.c util.c \
wrapnvml.cu wrapnvml.h \
sha2.c \
scrypt.cpp \
maxcoin.cpp \
blakecoin.cpp \
sha3.cpp sha3.h \
scrypt-jane.cpp scrypt-jane.h \
salsa_kernel.cu salsa_kernel.h \
sha256.cu sha256.h \
keccak.cu keccak.h \
blake.cu blake.h blake.c sph_blake.h sph_types.h \
fermi_kernel.cu fermi_kernel.h \
kepler_kernel.cu kepler_kernel.h \
test_kernel.cu test_kernel.h \
nv_kernel.cu nv_kernel.h \
nv_kernel2.cu nv_kernel2.h \
titan_kernel.cu titan_kernel.h
cudaminer_LDFLAGS = $(PTHREAD_FLAGS) @CUDA_LDFLAGS@
cudaminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @CUDA_LIBS@ @OPENMP_CFLAGS@ @LIBS@ -ldl
cudaminer_CPPFLAGS = -msse2 @LIBCURL_CPPFLAGS@ @OPENMP_CFLAGS@ $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME
nvcc_ARCH = -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"
#nvcc_ARCH += -gencode=arch=compute_20,code=\"sm_20,compute_20\"
.cu.o:
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
sha256.o: sha256.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
keccak.o: keccak.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
blake.o: blake.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
# compute 1.0 doesnt exists anymore... in cuda 6.5 SDK
fermi_kernel.o: fermi_kernel.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --maxrregcount=64 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
kepler_kernel.o: kepler_kernel.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" -gencode=arch=compute_30,code=\"sm_30,compute_30\" --maxrregcount=32 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
titan_kernel.o: titan_kernel.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --maxrregcount=32 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
test_kernel.o: test_kernel.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=32 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
nv_kernel.o: nv_kernel.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=64 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<
nv_kernel2.o: nv_kernel2.cu
$(NVCC) @CFLAGS@ -Xptxas "-v" $(nvcc_ARCH) --maxrregcount=80 $(JANSSON_INCLUDES) $(CUDA_CFLAGS) -o $@ -c $<