Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
96e9dbca
Commit
96e9dbca
authored
Jul 15, 2016
by
Denis Davydov
Browse files
Options
Downloads
Patches
Plain Diff
suite-sparse: enable TBB and fix Blas/Lapack libs
parent
069de3f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/suite-sparse/package.py
+16
-13
16 additions, 13 deletions
var/spack/repos/builtin/packages/suite-sparse/package.py
var/spack/repos/builtin/packages/suite-sparse/tbb_453.patch
+13
-0
13 additions, 0 deletions
var/spack/repos/builtin/packages/suite-sparse/tbb_453.patch
with
29 additions
and
13 deletions
var/spack/repos/builtin/packages/suite-sparse/package.py
+
16
−
13
View file @
96e9dbca
...
@@ -32,21 +32,20 @@ class SuiteSparse(Package):
...
@@ -32,21 +32,20 @@ class SuiteSparse(Package):
homepage
=
'
http://faculty.cse.tamu.edu/davis/suitesparse.html
'
homepage
=
'
http://faculty.cse.tamu.edu/davis/suitesparse.html
'
url
=
'
http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.1.tar.gz
'
url
=
'
http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.1.tar.gz
'
version
(
'
4.5.1
'
,
'
f0ea9aad8d2d1ffec66a5b6bfeff5319
'
)
version
(
'
4.5.3
'
,
'
8ec57324585df3c6483ad7f556afccbd
'
)
version
(
'
4.5.3
'
,
'
8ec57324585df3c6483ad7f556afccbd
'
)
version
(
'
4.5.1
'
,
'
f0ea9aad8d2d1ffec66a5b6bfeff5319
'
)
# FIXME: (see below)
variant
(
'
tbb
'
,
default
=
True
,
description
=
'
Build with Intel TBB
'
)
# variant('tbb', default=True, description='Build with Intel TBB')
depends_on
(
'
blas
'
)
depends_on
(
'
blas
'
)
depends_on
(
'
lapack
'
)
depends_on
(
'
lapack
'
)
depends_on
(
'
metis@5.1.0
'
,
when
=
'
@4.5.1:
'
)
depends_on
(
'
metis@5.1.0
'
,
when
=
'
@4.5.1:
'
)
# FIXME:
# in @4.5.1. TBB support in SPQR seems to be broken as TBB-related linkng
# in @4.5.1. TBB support in SPQR seems to be broken as TBB-related linkng
# flags does not seem to be used, which leads to linking errors on Linux.
# flags does not seem to be used, which leads to linking errors on Linux.
# Try re-enabling in future versions.
depends_on
(
'
tbb
'
,
when
=
'
@4.5.3:+tbb
'
)
# depends_on('tbb', when='+tbb')
patch
(
'
tbb_453.patch
'
,
when
=
'
@4.5.3
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
# The build system of SuiteSparse is quite old-fashioned.
# The build system of SuiteSparse is quite old-fashioned.
...
@@ -73,20 +72,24 @@ def install(self, spec, prefix):
...
@@ -73,20 +72,24 @@ def install(self, spec, prefix):
])
])
# Intel TBB in SuiteSparseQR
# Intel TBB in SuiteSparseQR
if
'
+
tbb
'
in
spec
:
if
'
tbb
'
in
spec
:
make_args
.
extend
([
make_args
.
extend
([
'
SPQR_CONFIG=-DHAVE_TBB
'
,
'
SPQR_CONFIG=-DHAVE_TBB
'
,
'
TBB=-L%s -ltbb
'
%
spec
[
'
tbb
'
].
prefix
.
lib
,
'
TBB=-L%s -ltbb
'
%
spec
[
'
tbb
'
].
prefix
.
lib
,
])
])
# BLAS arguments require path to libraries
# Make sure Spack's Blas/Lapack is used. Otherwise System's
# FIXME: (blas/lapack always provide libblas and liblapack as aliases)
# Blas/Lapack might be picked up.
blas
=
to_link_flags
(
spec
[
'
blas
'
].
blas_shared_lib
)
lapack
=
to_link_flags
(
spec
[
'
lapack
'
].
lapack_shared_lib
)
if
'
@4.5.1
'
in
spec
:
if
'
@4.5.1
'
in
spec
:
# adding -lstdc++ is clearly an ugly way to do this, but it follows
# adding -lstdc++ is clearly an ugly way to do this, but it follows
# with the TCOV path of SparseSuite 4.5.1's Suitesparse_config.mk
# with the TCOV path of SparseSuite 4.5.1's Suitesparse_config.mk
blas
+=
'
-lstdc++
'
make_args
.
extend
([
make_args
.
extend
([
'
BLAS=
-lblas -lstdc++
'
,
'
BLAS=
%s
'
%
blas
,
'
LAPACK=
-l
lapack
'
'
LAPACK=
%s
'
%
lapack
])
])
make
(
'
install
'
,
*
make_args
)
make
(
'
install
'
,
*
make_args
)
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/suite-sparse/tbb_453.patch
0 → 100644
+
13
−
0
View file @
96e9dbca
diff --git a/SPQR/Lib/Makefile b/SPQR/Lib/Makefile
index eaade58..d0de852 100644
--- a/SPQR/Lib/Makefile
+++ b/SPQR/Lib/Makefile
@@ -13,7 +13,7 @@
ccode: all
include ../../SuiteSparse_config/SuiteSparse_config.mk
# SPQR depends on CHOLMOD, AMD, COLAMD, LAPACK, the BLAS and SuiteSparse_config
-LDLIBS += -lamd -lcolamd -lcholmod -lsuitesparseconfig $(LAPACK) $(BLAS)
+LDLIBS += -lamd -lcolamd -lcholmod -lsuitesparseconfig $(TBB) $(LAPACK) $(BLAS)
# compile and install in SuiteSparse/lib
library:
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
sign in
to comment