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
9f7c1a9b
Commit
9f7c1a9b
authored
2 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Re-introduce definition of with-fflags configuration option
parent
39527eeb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/configure.sh
+14
-7
14 additions, 7 deletions
build/configure.sh
with
14 additions
and
7 deletions
build/configure.sh
+
14
−
7
View file @
9f7c1a9b
...
...
@@ -10,6 +10,7 @@ DEBUGFLAGS=""
ENABLE_ILP64
=
"yes"
FC_OPT
=
3
FC_DBG
=
" -ggdb"
FFLAGS
=
""
LAPACK
=
"auto"
LIBMODE
=
"static"
MAGMA
=
"auto"
...
...
@@ -83,11 +84,13 @@ function print_help {
echo
"--enable-shared Use shared libraries (default is static). "
echo
"--help Print this help and exit. "
echo
"--with-cublas Use cuBLAS (DEFAULT). "
echo
"--without-cublas Disable cuBLAS. "
echo
"--with-fflags=FFLAGS Use specified FORTRAN compiler flags instead of "
echo
" detected ones. "
echo
"--with-hdf5=HDF5_PATH Use specified HDF5 distribution. "
echo
"--with-lapack Use LAPACK (DEFAULT). "
echo
"--with-magma=[MAGMA] Use specified MAGMA distribution (DEFAULT). "
echo
"--without-cublas Disable cuBLAS. "
echo
"--without-lapack Disable LAPACK. "
echo
"--with-magma=[MAGMA] Use specified MAGMA distribution (DEFAULT). "
echo
"--without-magma Disable MAGMA. "
echo
" "
echo
"Some influential environment variables are: "
...
...
@@ -178,6 +181,11 @@ do
CUBLAS
=
"yes"
elif
[
"x
$cut_arg
"
=
"x--without-cublas"
]
;
then
CUBLAS
=
"no"
elif
[
"x
$cut_arg
"
=
"x--with-fflags"
]
;
then
custom_flags
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
if
[
"x
$custom_flags
"
!=
"x"
]
;
then
FFLAGS
=
$custom_flags
fi
elif
[
"x
$cut_arg
"
=
"x--with-hdf5"
]
;
then
HDF5_HOME
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
if
[
"x
${
HDF5_HOME
}
"
=
"x"
]
;
then
...
...
@@ -186,11 +194,6 @@ do
fi
elif
[
"x
$cut_arg
"
=
"x--with-lapack"
]
;
then
LAPACK
=
"yes"
#LAPACKHOME=$(echo $arg | cut -d '=' -f2)
#if [ "x$LAPACKHOME" != "x" ]; then
# LAPACK_INCLUDE="$LAPACKHOME/include"
# LAPACK_LIB="$LAPACKHOME/lib"
#fi
elif
[
"x
$cut_arg
"
=
"x--without-lapack"
]
;
then
LAPACK
=
"no"
elif
[
"x
$cut_arg
"
=
"x--with-magma"
]
;
then
...
...
@@ -764,6 +767,10 @@ if [ "x$CXXLDFLAGS" = "x" ]; then
CXXLDFLAGS
=
"-Llibnptm -lnptm
${
HDF5LDFLAGS
}
${
LAPACKLDFLAGS
}${
CUBLASLDFLAGS
}${
MAGMALDFLAGS
}
"
fi
fi
if
[
"x
$FFLAGS
"
!=
"x"
]
;
then
FCFLAGS
=
$FFLAGS
fi
# End of configuration logic
# Print a summary of configuration options
...
...
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