Spack Note

本文记录 spack 包管理工具的笔记。

useful commands

  • spack install
spack install <package_name>@1.0.0

@ 代表安装的版本

  • spack list

show available packages.

  • spack versions show available versions

编译参数

The spec syntax also includes compiler flags. Spack accepts cppflags, cflags, cxxflags, fflags, ldflags, and ldlibs parameters.

spack install zlib@1.2.8 cppflags=-O3

指定特定的编译器 %

spack install zlib %clang
updatedupdated2022-07-122022-07-12