Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:spack-transition [2023/05/05 06:56] – [New approach without environments] jz | doku:spack-transition [2023/05/05 11:39] – [Method 2] jz | ||
---|---|---|---|
Line 64: | Line 64: | ||
===== Migration script - " | ===== Migration script - " | ||
+ | |||
+ | ==== Method 1 ==== | ||
If you need to find a list of packages or modules which correspond to the software you have been using until now, you can use the alias **spacksearch** to do that | If you need to find a list of packages or modules which correspond to the software you have been using until now, you can use the alias **spacksearch** to do that | ||
Line 148: | Line 150: | ||
spack find -lvd /upkxxi | spack find -lvd /upkxxi | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== Method 2 ==== | ||
+ | |||
+ | Add this function to your '' | ||
+ | |||
+ | < | ||
+ | ## spack command wrapper, so we can include our own `spack something` | ||
+ | ## commands, like `spack search`: | ||
+ | spack () { | ||
+ | case " | ||
+ | " | ||
+ | python3 / | ||
+ | ;; | ||
+ | *) | ||
+ | command spack " | ||
+ | esac | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Usage example: | ||
+ | |||
+ | < | ||
+ | skylake [user@l41 ~]$ spack search asd | ||
+ | |||
+ | ==> The package hash asd refers to python and belongs to vsc4 as: | ||
+ | | ||
+ | |||
+ | ==> Searching similar python modules at skylake... | ||
+ | |||
+ | ---/ | ||
+ | python/ | ||
+ | python/ | ||
+ | python/ | ||
+ | |||
+ | ==> Load any one of these packages with ' | ||
+ | module load python/ | ||
+ | |||
+ | ==> Get some additional info with 'spack find -lvd mypackage', | ||
+ | spack find -lvd /p4x6ji | ||
+ | </ | ||
+ | |||
+ | ---- | ||
Line 163: | Line 208: | ||
export MODULEPATH=/ | export MODULEPATH=/ | ||
</ | </ | ||
+ | |||
+ | ===== Continue with old spack environments ===== | ||
+ | |||
+ | You may also continue to work with the spack environments. If you wish to do so you need the following commands: | ||
+ | |||
+ | == On zen3 == | ||
+ | |||
+ | < | ||
+ | source / | ||
+ | spacktivate zen3 | ||
+ | </ | ||
+ | |||
+ | == On skylake == | ||
+ | |||
+ | < | ||
+ | source / | ||
+ | spacktivate skylake | ||
+ | </ | ||
+ | |||
<box 80% round red|Warning> | <box 80% round red|Warning> | ||
+ | |||
---- | ---- | ||