Skip to content

Commit 46b015d

Browse files
resolve #17, new makefile for cuda solvers cuDSS, AmgX
1 parent 317fd92 commit 46b015d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

build/ALL_MAKEFILES/makefile.cuda

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
program = falcon
3+
4+
subdirs = ../src/constraints \
5+
$(wildcard ../src/fem/*/) \
6+
$(wildcard ../src/io/*/) \
7+
../src/materials \
8+
$(wildcard ../src/solvers/*/) \
9+
../src/steppers \
10+
../src/util
11+
12+
include $(JIVEDIR)/makefiles/prog.mk
13+
include $(JIVEDIR)/makefiles/packages/*.mk
14+
15+
# With external cuda solvers, cuDSS and AmgX
16+
# Remember to setup LD_LIBRARY_PATH to cuda libraries
17+
18+
# Libraries and their dependencies
19+
CUDALIBS = cudart cudss cudart_static cublas cusolver cusparse amgxsh
20+
21+
# Include directories
22+
CUDAINC = /path/to/cuda/include/directory
23+
CUDSSINC = /path/to/cudss/include/directory
24+
AMGXINC = /path/to/amgx/include/directory
25+
26+
# Library directories
27+
CUDALIB = /path/to/cuda/library/directory
28+
CUDSSLIB = /path/to/cudss/library/directory
29+
AMGXLIB = /path/to/amgx/library/directory
30+
31+
MY_LIBS = $(CUDALIBS)
32+
MY_INCDIRS = ../src $(CUDAINC) $(CUDSSINC) $(AMGXINC) /usr/include
33+
MY_LIBDIRS = . $(CUDALIB) $(CUDSSLIB) $(AMGXLIB) /usr/lib/
34+
MY_CXX_STD_FLAGS = -DWITH_AMGX -DWITH_CUDSS -fopenmp
35+
MY_LD_FLAGS = -static

0 commit comments

Comments
 (0)