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
4c055630
Unverified
Commit
4c055630
authored
4 years ago
by
Nichols A. Romero
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
quantum-espresso: correctly cross-compile code for Cray and BG/Q (#17180)
parent
fd710fc9
Branches
Branches containing commit
Tags
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/quantum-espresso/package.py
+13
-0
13 additions, 0 deletions
var/spack/repos/builtin/packages/quantum-espresso/package.py
with
13 additions
and
0 deletions
var/spack/repos/builtin/packages/quantum-espresso/package.py
+
13
−
0
View file @
4c055630
...
@@ -224,6 +224,19 @@ def install(self, spec, prefix):
...
@@ -224,6 +224,19 @@ def install(self, spec, prefix):
prefix_path
=
prefix
.
bin
if
'
@:5.4.0
'
in
spec
else
prefix
prefix_path
=
prefix
.
bin
if
'
@:5.4.0
'
in
spec
else
prefix
options
=
[
'
-prefix={0}
'
.
format
(
prefix_path
)]
options
=
[
'
-prefix={0}
'
.
format
(
prefix_path
)]
# This additional flag is needed anytime the target architecture
# does not match the host architecture, which results in a binary that
# configure cannot execute on the login node. This is how we detect
# cross compilation: If the platform is NOT either Linux or Darwin
# and the target=backend, that we are in the cross-compile scenario
# scenario. This should cover Cray, BG/Q, and other custom platforms.
# The other option is to list out all the platform where you would be
# cross compiling explicitly.
if
not
(
spec
.
satisfies
(
'
platform=linux
'
)
or
spec
.
satisfies
(
'
platform=darwin
'
)):
if
spec
.
satisfies
(
'
target=backend
'
):
options
.
append
(
'
--host
'
)
# QE autoconf compiler variables has some limitations:
# QE autoconf compiler variables has some limitations:
# 1. There is no explicit MPICC variable so we must re-purpose
# 1. There is no explicit MPICC variable so we must re-purpose
# CC for the case of MPI.
# CC for the case of MPI.
...
...
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