Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
MAM_BICGSTAB
Commits
03439e71
Commit
03439e71
authored
Mar 18, 2024
by
iker_martin
Browse files
Adapted makefile to compile with MaM shared library
parent
4bcc805a
Changes
1
Hide whitespace changes
Inline
Side-by-side
BiCGStab_Iker/makefile
View file @
03439e71
...
...
@@ -21,11 +21,16 @@
# ============================================================
# GNU COMPILERS
# ============================================================
DIR
=
/home/martini/mam_bicgstab
APP
=
malleability/build
MAMFLAGS
=
-I
$(DIR)
/malleability
-L
$(DIR)
/
$(APP)
-lmam
#-Wl,-rpath=$(DIR)/$(APP)
CC
=
mpic
xx
CC
=
mpic
c
CFLAGS
=
-std
=
c++11
-mavx
-fabi-version
=
0
-Wall
-fopenmp
-I
.
-I
${MKLROOT}
/include
-I
${HOME}
/libs
CFLAGS
=
-std
=
c++11
-Wall
-fopenmp
-I
.
-I
${MKLROOT}
/include
-I
${HOME}
/libs
#
CFLAGS = -std=c++11 -Wall -fopenmp -I. -I${MKLROOT}/include -I${HOME}/libs
CLFLAGS
=
-Wall
-fopenmp
-I
.
-I
${MKLROOT}
/include
CFLAGS
=
-Wall
-fopenmp
-I
.
-I
${HOME}
/libs
#ADDED BY IKER
CLINKER
=
mpicxx
LDFLAGS
=
-fopenmp
...
...
@@ -35,6 +40,7 @@ LIBLIST = -L. -lhbio -lclock -lm -lc
LIBLIST
=
-L
.
-lsparse
-lvector
-lclock
-lm
-lc
LIBMKL
=
-L
${MKLROOT}
/lib/intel64
-lmkl_intel_lp64
-lmkl_core
-lmkl_sequential
-lpthread
LIBMKL
=
# ============================================================
...
...
@@ -71,14 +77,14 @@ libsparse.a : $(OBJS_SPARSE)
$(AR)
$(ARFLAGS)
$@
$?
$(RL)
$(RLFLAGS)
$@
BiCGStab
:
BiCGStab.o ToolsMPI.o matrix.o
$(CLINKER)
$(LDFLAGS)
-o
BiCGStab BiCGStab.o ToolsMPI.o matrix.o
$(LIBMKL)
$(LIBLIST)
BiCGStab
:
BiCGStab.o ToolsMPI.o
ToolsMAM.o
matrix.o
mymkl.o
$(CLINKER)
$(LDFLAGS)
-o
BiCGStab BiCGStab.o ToolsMPI.o
ToolsMAM.o
matrix.o
mymkl.o
$(LIBMKL)
$(LIBLIST)
$(MAMFLAGS)
# ============================================================
.c.o
:
echo
compiling
$(CC)
$(CFLAGS)
-c
$*
.c
$(CC)
$(CFLAGS)
-c
$*
.c
clean
:
rm
-f
*
.o
*
.a BiCGStab
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment