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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
3d3614e5
Commit
3d3614e5
authored
8 years ago
by
Kelly (KT) Thompson
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update to allow netlib-scalapack to build against netlib-lapack. (#1539)
parent
c1284a90
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
var/spack/repos/builtin/packages/netlib-scalapack/package.py
+7
-5
7 additions, 5 deletions
var/spack/repos/builtin/packages/netlib-scalapack/package.py
with
7 additions
and
5 deletions
var/spack/repos/builtin/packages/netlib-scalapack/package.py
+
7
−
5
View file @
3d3614e5
...
@@ -41,12 +41,14 @@ class NetlibScalapack(Package):
...
@@ -41,12 +41,14 @@ class NetlibScalapack(Package):
variant
(
'
shared
'
,
default
=
True
,
variant
(
'
shared
'
,
default
=
True
,
description
=
'
Build the shared library version
'
)
description
=
'
Build the shared library version
'
)
variant
(
'
fpic
'
,
default
=
False
,
description
=
"
Build with -fpic compiler option
"
)
variant
(
'
fpic
'
,
default
=
False
,
description
=
"
Build with -fpic compiler option
"
)
provides
(
'
scalapack
'
)
provides
(
'
scalapack
'
)
depends_on
(
'
mpi
'
)
depends_on
(
'
mpi
'
)
depends_on
(
'
lapack
'
)
depends_on
(
'
lapack
'
)
depends_on
(
'
blas
'
)
depends_on
(
'
cmake
'
,
when
=
'
@2.0.0:
'
,
type
=
'
build
'
)
depends_on
(
'
cmake
'
,
when
=
'
@2.0.0:
'
,
type
=
'
build
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
...
@@ -54,18 +56,18 @@ def install(self, spec, prefix):
...
@@ -54,18 +56,18 @@ def install(self, spec, prefix):
"
-DBUILD_SHARED_LIBS:BOOL=%s
"
%
(
'
ON
'
if
'
+shared
'
in
spec
else
"
-DBUILD_SHARED_LIBS:BOOL=%s
"
%
(
'
ON
'
if
'
+shared
'
in
spec
else
'
OFF
'
),
'
OFF
'
),
"
-DBUILD_STATIC_LIBS:BOOL=%s
"
%
(
'
OFF
'
if
'
+shared
'
in
spec
else
"
-DBUILD_STATIC_LIBS:BOOL=%s
"
%
(
'
OFF
'
if
'
+shared
'
in
spec
else
'
ON
'
),
'
ON
'
)
# forces scalapack to use find_package(LAPACK):
"
-DUSE_OPTIMIZED_LAPACK_BLAS:BOOL=ON
"
,
]
]
# Make sure we use Spack's Lapack:
# Make sure we use Spack's Lapack:
options
.
extend
([
options
.
extend
([
'
-DLAPACK_FOUND=true
'
,
'
-DLAPACK_FOUND=true
'
,
'
-DLAPACK_INCLUDE_DIRS=%s
'
%
spec
[
'
lapack
'
].
prefix
.
include
,
'
-DLAPACK_LIBRARIES=%s
'
%
(
'
-DLAPACK_LIBRARIES=%s
'
%
(
spec
[
'
lapack
'
].
lapack_shared_lib
if
'
+shared
'
in
spec
else
spec
[
'
lapack
'
].
lapack_shared_lib
if
'
+shared
'
in
spec
else
spec
[
'
lapack
'
].
lapack_static_lib
),
spec
[
'
lapack
'
].
lapack_static_lib
),
'
-DBLAS_LIBRARIES=%s
'
%
(
spec
[
'
blas
'
].
blas_shared_lib
if
'
+shared
'
in
spec
else
spec
[
'
blas
'
].
blas_static_lib
)
])
])
if
'
+fpic
'
in
spec
:
if
'
+fpic
'
in
spec
:
...
...
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