Commit 4a1bf74b authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add USE_OPENMP compile option

parent 7b796792
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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 **`
+7 −1
Original line number Diff line number Diff line
@@ -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