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
6db1472c
Commit
6db1472c
authored
6 years ago
by
Lars Bilke
Committed by
Axel Huebl
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vtk: Added mpi variant (#9494)
parent
24c75d39
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/vtk/package.py
+9
-0
9 additions, 0 deletions
var/spack/repos/builtin/packages/vtk/package.py
with
9 additions
and
0 deletions
var/spack/repos/builtin/packages/vtk/package.py
+
9
−
0
View file @
6db1472c
...
@@ -48,6 +48,7 @@ class Vtk(CMakePackage):
...
@@ -48,6 +48,7 @@ class Vtk(CMakePackage):
variant
(
'
osmesa
'
,
default
=
False
,
description
=
'
Enable OSMesa support
'
)
variant
(
'
osmesa
'
,
default
=
False
,
description
=
'
Enable OSMesa support
'
)
variant
(
'
python
'
,
default
=
False
,
description
=
'
Enable Python support
'
)
variant
(
'
python
'
,
default
=
False
,
description
=
'
Enable Python support
'
)
variant
(
'
qt
'
,
default
=
False
,
description
=
'
Build with support for Qt
'
)
variant
(
'
qt
'
,
default
=
False
,
description
=
'
Build with support for Qt
'
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Enable MPI support
'
)
# Haru causes trouble on Fedora and Ubuntu in v8.1.1
# Haru causes trouble on Fedora and Ubuntu in v8.1.1
# See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13
# See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13
...
@@ -74,6 +75,8 @@ class Vtk(CMakePackage):
...
@@ -74,6 +75,8 @@ class Vtk(CMakePackage):
# VTK will need Qt5OpenGL, and qt needs '-opengl' for that
# VTK will need Qt5OpenGL, and qt needs '-opengl' for that
depends_on
(
'
qt+opengl
'
,
when
=
'
+qt
'
)
depends_on
(
'
qt+opengl
'
,
when
=
'
+qt
'
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
'
libharu
'
,
when
=
'
+haru
'
)
depends_on
(
'
libharu
'
,
when
=
'
+haru
'
)
depends_on
(
'
expat
'
)
depends_on
(
'
expat
'
)
...
@@ -167,6 +170,12 @@ def cmake_args(self):
...
@@ -167,6 +170,12 @@ def cmake_args(self):
'
-DModule_vtkGUISupportQtOpenGL:BOOL=ON
'
,
'
-DModule_vtkGUISupportQtOpenGL:BOOL=ON
'
,
])
])
if
'
+mpi
'
in
spec
:
cmake_args
.
extend
([
'
-DVTK_Group_MPI:BOOL=ON
'
,
'
-DVTK_USE_SYSTEM_DIY2=OFF
'
])
if
'
+osmesa
'
in
spec
:
if
'
+osmesa
'
in
spec
:
prefix
=
spec
[
'
mesa
'
].
prefix
prefix
=
spec
[
'
mesa
'
].
prefix
osmesa_include_dir
=
prefix
.
include
osmesa_include_dir
=
prefix
.
include
...
...
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