-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from FluidNumerics/88-error-setting-compiler-f…
…or-spack Clarify setting preferred compiler.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,16 @@ SELF comes with a spack environment file that defines the dependencies that are | |
git clone https://github.com/fluidnumerics/SELF/ ~/SELF/ | ||
``` | ||
|
||
If you have a preferred compiler you would like for spack to use, you can use `spack config add`, e.g. | ||
**If you have a preferred compiler** you would like for spack to use, you can use `spack config add`, e.g. | ||
|
||
``` | ||
spack -e ~/SELF/share/spack-env config add packages:all:require:['%[email protected]'] | ||
spack -e ~/SELF/share/spack-env config add packages:all:require:["'%[email protected]'"] | ||
``` | ||
|
||
The example above will force packages to be built with version 12.2.0 of gfortran from the `gcc` compiler set. | ||
The example above will force packages to be built with version 12.2.0 of gfortran from the `gcc` compiler set. | ||
|
||
!!! note | ||
If you do not set a preferred compiler, spack will pick one based on the available compilers found using `spack compiler find` | ||
|
||
To reduce build time, import existing packages on your system | ||
``` | ||
|