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
d15d8565
Commit
d15d8565
authored
1 year ago
by
Mulas, Giacomo
Browse files
Options
Downloads
Patches
Plain Diff
_really_ fix makefiles and defines for various options
parent
5c917d34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cluster/cluster.cpp
+3
-3
3 additions, 3 deletions
src/cluster/cluster.cpp
src/make.inc
+10
-7
10 additions, 7 deletions
src/make.inc
with
13 additions
and
10 deletions
src/cluster/cluster.cpp
+
3
−
3
View file @
d15d8565
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
#include
"../include/algebraic.h"
#include
"../include/algebraic.h"
#endif
#endif
#ifdef LAPACK_ILP64
//
#ifdef LAPACK_ILP64
#define USE_LAPACK
//
#define USE_LAPACK
#endif
//
#endif
using
namespace
std
;
using
namespace
std
;
...
...
This diff is collapsed.
Click to expand it.
src/make.inc
+
10
−
7
View file @
d15d8565
...
@@ -73,11 +73,12 @@ endif
...
@@ -73,11 +73,12 @@ endif
# CXXFLAGS defines the default compilation options for the C++ compiler
# CXXFLAGS defines the default compilation options for the C++ compiler
ifndef
CXXFLAGS
ifndef
CXXFLAGS
ifdef
USE_LAPACK
override
CXXFLAGS
=-
O3
-
ggdb
-
pg
-
coverage
-
I
$
(
HDF5_INCLUDE
)
-
I
$
(
LAPACK_INCLUDE
)
else
override
CXXFLAGS
=-
O3
-
ggdb
-
pg
-
coverage
-
I
$
(
HDF5_INCLUDE
)
override
CXXFLAGS
=-
O3
-
ggdb
-
pg
-
coverage
-
I
$
(
HDF5_INCLUDE
)
#override CXXFLAGS=-O3 -I$(HDF5_INCLUDE)
ifdef
USE_LAPACK
override
CXXFLAGS
+=
-
DUSE_LAPACK
-
DMKL_ILP64
-
DLAPACK_ILP64
ifdef
USE_MKL
override
CXXFLAGS
+=
-
DMKL_ILP64
-
I
$
(
MKLROOT
)
/
include
endif
endif
endif
endif
endif
...
@@ -87,9 +88,11 @@ ifndef CXXLDFLAGS
...
@@ -87,9 +88,11 @@ ifndef CXXLDFLAGS
ifndef
HDF5_LIB
ifndef
HDF5_LIB
override
HDF5_LIB
=/
usr
/
lib
/
x86_64
-
linux
-
gnu
/
hdf5
/
serial
override
HDF5_LIB
=/
usr
/
lib
/
x86_64
-
linux
-
gnu
/
hdf5
/
serial
endif
endif
override
CXXLDFLAGS
=-
L
/
usr
/
lib64
-
L
$
(
HDF5_LIB
)
-
lhdf5
$
(
LAPACK_LDFLAGS
)
$
(
LDFLAGS
)
override
CXXLDFLAGS
=-
L
/
usr
/
lib64
-
L
$
(
HDF5_LIB
)
-
lhdf5
#else
ifdef
USE_LAPACK
#override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5 $(CXXLDFLAGS)
override
CXXLDFLAGS
+=
$
(
LAPACK_LDFLAGS
)
endif
override
CXXLDFLAGS
+=
$
(
LDFLAGS
)
endif
endif
#SOFLAGS defines the additional flags for the c++ compiler to create a shared object file
#SOFLAGS defines the additional flags for the c++ compiler to create a shared object file
...
...
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