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
ca0f1428
Commit
ca0f1428
authored
7 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Force BLAS flags definition when MKL is not found and GPU is not used
parent
e5629657
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
+7
-6
7 additions, 6 deletions
build/configure.sh
with
7 additions
and
6 deletions
build/configure.sh
+
7
−
6
View file @
ca0f1428
...
...
@@ -495,6 +495,7 @@ if [ "x$LAPACK" != "xno" ]; then
LAPACK_LDSPEC
=
""
MKL_BUILD
=
"mkl-dynamic-lp64-gomp"
fi
# end of 64-bit decision tree
BLASFLAGS
=
""
BLASLDFLAGS
=
""
pkg-config
--version
>
/dev/null
use_pkg_config
=
$?
...
...
@@ -533,8 +534,8 @@ if [ "x$LAPACK" != "xno" ]; then
if
[
"x
$result
"
=
"x0"
]
;
then
# LAPACKe was found
LAPACK_INCLUDE
=
$(
pkg-config
--cflags-only-I
lapacke
${
LAPACK_LDSPEC
}
)
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
${
LAPACK_INCLUDE
}
"
LAPACKLDFLAGS
=
"
$(
pkg-config
--libs
lapacke
${
LAPACK_LDSPEC
}
)
"
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
${
LAPACK_INCLUDE
}
${
BLASFLAGS
}
"
LAPACKLDFLAGS
=
"
$(
pkg-config
--libs
lapacke
${
LAPACK_LDSPEC
}
)
${
BLASLDFLAGS
}
"
echo
"lapacke"
fi
# end of LAPACKe decision tree
if
[
"x
${
LAPACKFLAGS
}${
LAPACKLDFLAGS
}
"
=
"x"
]
;
then
...
...
@@ -545,8 +546,8 @@ if [ "x$LAPACK" != "xno" ]; then
if
[
"x
$result
"
=
"x0"
]
;
then
# LAPACK was found
LAPACK_INCLUDE
=
$(
pkg-config
--cflags-only-I
lapack
${
LAPACK_LDSPEC
}
)
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
${
LAPACK_INCLUDE
}
"
LAPACKLDFLAGS
=
"
$(
pkg-config
--libs
lapack
${
LAPACK_LDSPEC
}
)
"
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
${
LAPACK_INCLUDE
}
${
BLASFLAGS
}
"
LAPACKLDFLAGS
=
"
$(
pkg-config
--libs
lapack
${
LAPACK_LDSPEC
}
)
${
BLASLDFLAGS
}
"
echo
"LAPACK"
fi
# end of LAPACK decision tree
fi
# end of LAPACKe decision tree
...
...
@@ -561,8 +562,8 @@ if [ "x$LAPACK" != "xno" ]; then
echo
"MKL"
else
if
[
-f
/usr/include/lapacke.h
]
;
then
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
"
LAPACKLDFLAGS
=
" -llapacke
${
LAPACK_LDSPEC
}
"
LAPACKFLAGS
=
" -DUSE_LAPACK
${
LAPACK_ILP64_FLAG
}
${
BLASFLAGS
}
"
LAPACKLDFLAGS
=
" -llapacke
${
LAPACK_LDSPEC
}
${
BLASLDFLAGS
}
"
echo
"lapacke"
fi
fi
...
...
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