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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
e5629657
Commit
e5629657
authored
7 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Fix configure argument parsing and openpm options
parent
4728e2aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/configure.sh
+6
-6
6 additions, 6 deletions
build/configure.sh
with
6 additions
and
6 deletions
build/configure.sh
+
6
−
6
View file @
e5629657
...
@@ -76,11 +76,11 @@ function print_help {
...
@@ -76,11 +76,11 @@ function print_help {
echo
"--disble-gdb Disable GNU debugger. "
echo
"--disble-gdb Disable GNU debugger. "
echo
"--disble-ilp64 Disable 64-bit integers. "
echo
"--disble-ilp64 Disable 64-bit integers. "
echo
"--disble-offload Disable GPU offloading. "
echo
"--disble-offload Disable GPU offloading. "
echo
"--disble-o
mp
Disable OpenMP multi-threading. "
echo
"--disble-o
penmp
Disable OpenMP multi-threading. "
echo
"--enable-debug=FEATURE Enable debug output of specified feature. "
echo
"--enable-debug=FEATURE Enable debug output of specified feature. "
echo
"--enable-fortran Enable FORTRAN compilation (DEFAULT). "
echo
"--enable-fortran Enable FORTRAN compilation (DEFAULT). "
echo
"--enable-nvtx Enable NVTX profiling tools. "
echo
"--enable-nvtx Enable NVTX profiling tools. "
echo
"--enable-o
mp
Enable OpenMP multi-threading (DEFAULT). "
echo
"--enable-o
penmp
Enable OpenMP multi-threading (DEFAULT). "
echo
"--enable-optimize=OPT Use OPT-level compiler optimization. "
echo
"--enable-optimize=OPT Use OPT-level compiler optimization. "
echo
"--enable-refinement Use iterative refinement of matrix inversion. "
echo
"--enable-refinement Use iterative refinement of matrix inversion. "
echo
"--enable-shared Use shared libraries (default is static). "
echo
"--enable-shared Use shared libraries (default is static). "
...
@@ -132,10 +132,10 @@ EOF
...
@@ -132,10 +132,10 @@ EOF
# Script execution
# Script execution
num_args
=
${#
@
}
num_args
=
${#
@
}
args
=
"
$@
"
declare
-a
args
=
(
"
$@
"
)
# Argument parsing section
# Argument parsing section
for
arg
in
$
args
for
arg
in
"
${
args
[@]
}
"
do
do
cut_arg
=
$(
echo
$arg
|
cut
-d
'='
-f1
)
cut_arg
=
$(
echo
$arg
|
cut
-d
'='
-f1
)
if
[
"x
$cut_arg
"
=
"x--help"
]
;
then
if
[
"x
$cut_arg
"
=
"x--help"
]
;
then
...
@@ -151,7 +151,7 @@ do
...
@@ -151,7 +151,7 @@ do
BUILDFORTRAN
=
"no"
BUILDFORTRAN
=
"no"
elif
[
"x
$cut_arg
"
=
"x--disable-offload"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--disable-offload"
]
;
then
OFFLOAD
=
"no"
OFFLOAD
=
"no"
elif
[
"x
$cut_arg
"
=
"x--disable-omp"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--disable-o
pen
mp"
]
;
then
OMPMODE
=
"no"
OMPMODE
=
"no"
elif
[
"x
$cut_arg
"
=
"x--enable-debug"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--enable-debug"
]
;
then
dbg_feature
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
dbg_feature
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
...
@@ -169,7 +169,7 @@ do
...
@@ -169,7 +169,7 @@ do
BUILDFORTRAN
=
"yes"
BUILDFORTRAN
=
"yes"
elif
[
"x
$cut_arg
"
=
"x--enable-nvtx"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--enable-nvtx"
]
;
then
NVTXFLAGS
=
" -DUSE_NVTX"
NVTXFLAGS
=
" -DUSE_NVTX"
elif
[
"x
$cut_arg
"
=
"x--enable-omp"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--enable-o
pen
mp"
]
;
then
OMPMODE
=
"yes"
OMPMODE
=
"yes"
elif
[
"x
$cut_arg
"
=
"x--enable-optimize"
]
;
then
elif
[
"x
$cut_arg
"
=
"x--enable-optimize"
]
;
then
opt_level
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
opt_level
=
$(
echo
$arg
|
cut
-d
'='
-f2
)
...
...
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