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 10:38] – [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 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 | ||
</ | </ | ||