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
44e188f1
Commit
44e188f1
authored
8 years ago
by
Adam J. Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Remove MPI support, fix INCLUDE filters
parent
7b97ea24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/psi4/package.py
+16
-21
16 additions, 21 deletions
var/spack/repos/builtin/packages/psi4/package.py
with
16 additions
and
21 deletions
var/spack/repos/builtin/packages/psi4/package.py
+
16
−
21
View file @
44e188f1
...
...
@@ -36,19 +36,15 @@ class Psi4(Package):
version
(
'
0.5
'
,
'
53041b8a9be3958384171d0d22f9fdd0
'
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Enable MPI parallelization
'
)
# Required dependencies
depends_on
(
'
blas
'
)
depends_on
(
'
lapack
'
)
depends_on
(
'
boost+chrono+filesystem~mpi+python+regex+serialization+system+timer+thread
'
,
when
=
'
~mpi
'
)
depends_on
(
'
boost+chrono+filesystem+mpi+python+regex+serialization+system+timer+thread
'
,
when
=
'
+mpi
'
)
depends_on
(
'
boost+chrono+filesystem+python+regex+serialization+system+timer+thread
'
)
depends_on
(
'
python
'
)
depends_on
(
'
cmake
'
)
depends_on
(
'
py-numpy
'
)
# Optional dependencies
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
# TODO: add packages for these
# depends_on('perl')
# depends_on('erd')
...
...
@@ -63,7 +59,6 @@ def install(self, spec, prefix):
'
-DLAPACK_LIBRARIES={0}
'
.
format
(
spec
[
'
lapack
'
].
lapack_shared_lib
),
'
-DBOOST_INCLUDEDIR={0}
'
.
format
(
spec
[
'
boost
'
].
prefix
.
include
),
'
-DBOOST_LIBRARYDIR={0}
'
.
format
(
spec
[
'
boost
'
].
prefix
.
lib
),
'
-DENABLE_MPI={0}
'
.
format
(
'
ON
'
if
'
+mpi
'
in
spec
else
'
OFF
'
),
'
-DENABLE_CHEMPS2=OFF
'
]
...
...
@@ -73,12 +68,11 @@ def install(self, spec, prefix):
cmake
(
'
..
'
,
*
cmake_args
)
make
()
ctest
()
make
(
'
install
'
)
self
.
filter_compilers
(
spec
)
self
.
filter_compilers
(
spec
,
prefix
)
def
filter_compilers
(
self
,
spec
):
def
filter_compilers
(
self
,
spec
,
prefix
):
"""
Run after install to tell the configuration files to
use the compilers that Spack built the package with.
...
...
@@ -94,27 +88,28 @@ def filter_compilers(self, spec):
for
filename
in
cc_files
:
filter_file
(
os
.
environ
[
'
CC
'
],
self
.
compiler
.
cc
,
os
.
path
.
join
(
self
.
prefix
,
filename
),
**
kwargs
)
os
.
path
.
join
(
prefix
,
filename
),
**
kwargs
)
for
filename
in
cxx_files
:
filter_file
(
os
.
environ
[
'
CXX
'
],
self
.
compiler
.
cxx
,
os
.
path
.
join
(
self
.
prefix
,
filename
),
**
kwargs
)
os
.
path
.
join
(
prefix
,
filename
),
**
kwargs
)
# The binary still keeps track of the compiler used to install Psi4
# and uses it when creating a plugin template
filter_file
(
'
@PLUGIN_CXX@
'
,
self
.
compiler
.
cxx
,
os
.
path
.
join
(
self
.
prefix
,
template
),
**
kwargs
)
os
.
path
.
join
(
prefix
,
template
),
**
kwargs
)
# The binary links to the build include directory instead of the
# installation include directory:
# https://github.com/psi4/psi4/issues/410
filter_file
(
'
@PLUGIN_INCLUDES@
'
,
'
-I{0}
'
.
format
(
'
-I
'
.
join
(
spec
[
'
psi4
'
].
prefix
.
include
,
spec
[
'
boost
'
].
prefix
.
include
,
spec
[
'
lapack
'
].
prefix
.
include
,
spec
[
'
blas
'
].
prefix
.
include
,
spec
[
'
python
'
].
prefix
.
include
,
'
/usr/include
'
)
),
os
.
path
.
join
(
self
.
prefix
,
template
),
**
kwargs
)
'
-I
'
.
join
([
os
.
path
.
join
(
spec
[
'
psi4
'
].
prefix
.
include
,
'
psi4
'
),
os
.
path
.
join
(
spec
[
'
boost
'
].
prefix
.
include
,
'
boost
'
),
os
.
path
.
join
(
spec
[
'
python
'
].
prefix
.
include
,
'
python{0}
'
.
format
(
spec
[
'
python
'
].
version
.
up_to
(
2
))),
spec
[
'
lapack
'
].
prefix
.
include
,
spec
[
'
blas
'
].
prefix
.
include
,
'
/usr/include
'
])
),
os
.
path
.
join
(
prefix
,
template
),
**
kwargs
)
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