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
8db35ab9
Commit
8db35ab9
authored
9 years ago
by
Denis Davydov
Browse files
Options
Downloads
Patches
Plain Diff
openblas: use spack_cc/spack_f77 and add a note on compiler mixing
parent
5e13bba0
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/openblas/package.py
+7
-5
7 additions, 5 deletions
var/spack/repos/builtin/packages/openblas/package.py
with
7 additions
and
5 deletions
var/spack/repos/builtin/packages/openblas/package.py
+
7
−
5
View file @
8db35ab9
...
...
@@ -48,11 +48,13 @@ class Openblas(Package):
patch
(
'
make.patch
'
)
def
install
(
self
,
spec
,
prefix
):
# Openblas is picky about compilers. Configure fails with
# FC=/abs/path/to/f77, whereas FC=f77 works fine.
# To circumvent this, provide basename only:
make_defs
=
[
'
CC=%s
'
%
os
.
path
.
basename
(
spack_cc
),
'
FC=%s
'
%
os
.
path
.
basename
(
spack_f77
),
# Configure fails to pick up fortran from FC=/abs/path/to/f77, but
# works fine with FC=/abs/path/to/gfortran.
# When mixing compilers make sure that
# $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable
# names and hack them inside lib/spack/spack/compilers/<compiler>.py
make_defs
=
[
'
CC=%s
'
%
spack_cc
,
'
FC=%s
'
%
spack_f77
,
'
MAKE_NO_J=1
'
]
make_targets
=
[
'
libs
'
,
'
netlib
'
]
...
...
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