Skip to content
Snippets Groups Projects
Commit 4a1bf74b authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add USE_OPENMP compile option

parent 7b796792
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,10 @@ endif
ifndef LIBNPTM
ifdef STATIC_NPTM
override LIBNPTM=$(BUILDDIR_NPTM)/libnptm.a
override STATICFLAG="-lsz -lz -laec -static"
else
override LIBNPTM=$(BUILDDIR_NPTM)/libnptm.so
override STATICFLAG=""
endif
endif
DOCSDIR=$(SRCDIR)/../doc
......@@ -30,7 +32,7 @@ $(LIBNPTM):
BUILDDIR=$(BUILDDIR) BUILDDIR_NPTM=$(BUILDDIR_NPTM) LIBNPTM=$(LIBNPTM) $(MAKE) -C libnptm $@
$(SUBDIRS): $(BUILDDIR) $(LIBNPTM)
BUILDDIR=$(BUILDDIR) BUILDDIR_NPTM=$(BUILDDIR_NPTM) LIBNPTM=$(LIBNPTM) $(MAKE) -C $@
BUILDDIR=$(BUILDDIR) BUILDDIR_NPTM=$(BUILDDIR_NPTM) LIBNPTM=$(LIBNPTM) STATICFLAG=$(STATICFLAG) $(MAKE) -C $@
clean: $(BUILDDIR)
BUILDDIR=$(BUILDDIR) $(MAKE) -C cluster clean
......
......@@ -379,7 +379,7 @@ void tqr(
/*! \brief Calculate the single-centered inversion of the M-matrix.
*
* This function computes the single-centered inverrted M-matrix appearing in Eq. (5.28)
* This function computes the single-centered inverted M-matrix appearing in Eq. (5.28)
* of Borghese, Denti & Saija (2007).
*
* \param am: `complex double **`
......
......@@ -79,6 +79,9 @@ override CXXFLAGS+= -DUSE_LAPACK -DLAPACK_ILP64
ifdef USE_MKL
override CXXFLAGS+= -DMKL_ILP64 -DUSE_MKL -I$(MKLROOT)/include
endif
ifdef USE_OPENMP
override CXXFLAGS+= -fopenmp
endif
endif
endif
......@@ -88,9 +91,12 @@ ifndef CXXLDFLAGS
ifndef HDF5_LIB
override HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial
endif
override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5
override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5 $(STATICFLAG)
ifdef USE_LAPACK
override CXXLDFLAGS+= $(LAPACK_LDFLAGS)
ifdef USE_OPENMP
override CXXLDFLAGS+= -lopenblas64
endif
endif
override CXXLDFLAGS+= $(LDFLAGS)
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment