Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
4a1bf74b
Commit
4a1bf74b
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Add USE_OPENMP compile option
parent
7b796792
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Makefile
+3
-1
3 additions, 1 deletion
src/Makefile
src/include/clu_subs.h
+1
-1
1 addition, 1 deletion
src/include/clu_subs.h
src/make.inc
+7
-1
7 additions, 1 deletion
src/make.inc
with
11 additions
and
3 deletions
src/Makefile
+
3
−
1
View file @
4a1bf74b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/include/clu_subs.h
+
1
−
1
View file @
4a1bf74b
...
...
@@ -379,7 +379,7 @@ void tqr(
/*! \brief Calculate the single-centered inversion of the M-matrix.
*
* This function computes the single-centered inver
r
ted 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 **`
...
...
This diff is collapsed.
Click to expand it.
src/make.inc
+
7
−
1
View file @
4a1bf74b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment