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/04 08:45] – [Migration script - "spacksearch"] katrin | doku:spack-transition [2023/05/05 10:38] – [Method 2] jz | ||
---|---|---|---|
Line 14: | Line 14: | ||
===== New approach without environments ===== | ===== New approach without environments ===== | ||
- | There are three separate spack installation trees corresponding to the CPU/GPU architectures on VSC: | + | There are now three separate spack installation trees corresponding to the CPU/GPU architectures on VSC: |
* skylake - Intel CPUs; works on Intel Skylake and Cascadelake CPUs | * skylake - Intel CPUs; works on Intel Skylake and Cascadelake CPUs | ||
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 147: | Line 149: | ||
==> Get some additional info with 'spack find -lvd mypackage', | ==> Get some additional info with 'spack find -lvd mypackage', | ||
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 | ||
</ | </ | ||