$ spack spec tar # check the compiling spec and dependents Input spec -------------------------------- tar
Concretized -------------------------------- [email protected]%[email protected] arch=linux-ubuntu18.04-x86_64 # the stdout indicates that tar with version 1.30 compiled by gcc 7.4.0 would be installed if spack install tar is called
$ spack install tar # install tar based on the above spec $ spack find tar # show all versions of tar installed by spack ==> 1 installed package -- linux-ubuntu18.04-x86_64 / [email protected] ------------------------- [email protected] $ spack location -i tar # show the full path of installed tar /home/user/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.4.0/tar-1.30-chre7vfevfhfn2bkv6lchiuoqaqwyav4
# 更复杂的安装方式,以安装 hpctoolkit 为例 $ spack info hpctoolkit AutotoolsPackage: hpctoolkit
Description: HPCToolkit is an integrated suite of tools for measurement and analysis of program performance on computers ranging from multicore desktop systems to the nation's largest supercomputers. By using statistical sampling of timers and hardware performance counters, HPCToolkit collects accurate measurements of a program's work, resource consumption, and inefficiency and attributes them to the full calling context inwhich they occur.
Homepage: http://hpctoolkit.org
Preferred version: 2022.05.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 8ac72d9963c4ed7b7f56acb65feb02fbce353479
Safe versions: develop [git] https://github.com/HPCToolkit/hpctoolkit.git on branch develop master [git] https://github.com/HPCToolkit/hpctoolkit.git on branch master 2022.05.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 8ac72d9963c4ed7b7f56acb65feb02fbce353479 2022.04.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit a92fdad29fc180cc522a9087bba9554a829ee002 2022.01.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 0238e9a052a696707e4e65b2269f342baad728ae 2021.10.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit a8f289e4dc87ff98e05cfc105978c09eb2f5ea16 2021.05.15 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 004ea0c2aea6a261e7d5d216c24f8a703fc6c408 2021.03.01 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 68a051044c952f0f4dac459d9941875c700039e7 2020.08.03 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit d9d13c705d81e5de38e624254cf0875cce6add9a 2020.07.21 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 4e56c780cffc53875aca67d6472a2fb3678970eb 2020.06.12 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit ac6ae1156e77d35596fea743ed8ae768f7222f19 2020.03.01 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 94ede4e6fa1e05e6f080be8dc388240ea027f769 2019.12.28 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit b4e1877ff96069fd8ed0fdf0e36283a5b4b62240
Deprecated versions: 2019.08.14 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 6ea44ed3f93ede2d0a48937f288a2d41188a277c 2018.12.28 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit 8dbf0d543171ffa9885344f32f23cc6f7f6e39bc 2018.11.05 [git] https://github.com/HPCToolkit/hpctoolkit.git at commit d0c43e39020e67095b1f1d8bb89b75f22b12aee9
Variants: Name [Default] When Allowed values Description ================ ==== ============== ============================================================================
all-static [off] -- on, off Needed when MPICXX builds static binaries for the compute nodes. cray [off] -- on, off Build for Cray compute nodes, including hpcprof-mpi. cuda [off] -- on, off Support CUDA on NVIDIA GPUs (2020.03.01 or later). debug [off] -- on, off Build in debug (develop) mode. level_zero [off] -- on, off Support Level Zero on Intel GPUs (2022.04.15 or later). mpi [off] -- on, off Build hpcprof-mpi, the MPI version of hpcprof. papi [on] -- on, off Use PAPI instead of perfmon for access to the hardware performance counters. rocm [off] -- on, off Support ROCM on AMD GPUs (2022.04.15 or later). viewer [on] -- on, off Include hpcviewer.
$ spack bootstrap mirror --binary-packages /opt/bootstrap ==> Adding "clingo-bootstrap@spack+python %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror ==> Adding "[email protected]: %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror ==> Adding "[email protected]:0.13.99 %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror ==> Adding binary packages from "https://github.com/alalazo/spack-bootstrap-mirrors/releases/download/v0.1-rc.2/bootstrap-buildcache.tar.gz" to the mirror at /opt/bootstrap/local-mirror