forked from spack/spack-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,19 +31,19 @@ docker rm sccenv | |
最小化配置一个可以使用的 spack,需要的软件依赖可以参考 [Dockerfile](./Dockerfile)。 | ||
|
||
```shell | ||
python3 -c "from tarfile import open;from urllib.request import urlopen;open(mode='r|gz',fileobj=urlopen('https://github.com/SYSU-SCC/sysu-scc-spack-repo/archive/refs/tags/v0.21.2.12.3.0.12.20240326.tar.gz')).extractall()" | ||
python3 -c "from tarfile import open;from urllib.request import urlopen;open(mode='r|gz',fileobj=urlopen('https://github.com/SYSU-SCC/sysu-scc-spack-repo/archive/refs/tags/v0.22.0.12.3.0.12.20240326.tar.gz')).extractall()" | ||
|
||
# 只依赖这一个环境变量,可以放进 ~/.bashrc | ||
export SCC_SETUP_ENV=$(realpath sysu-scc-spack-repo-0.21.2.12.3.0.12.20240326/share/sysu-scc-spack-repo/setup-env.sh) | ||
export SCC_SETUP_ENV=$(realpath sysu-scc-spack-repo-0.22.0.12.3.0.12.20240326/share/sysu-scc-spack-repo/setup-env.sh) | ||
|
||
# 初始化 | ||
$(dirname $SCC_SETUP_ENV)/init-env.sh v0.21.2 | ||
$(dirname $SCC_SETUP_ENV)/init-env.sh v0.22.0 | ||
|
||
# 后续每次只需要执行这一句即可使用配好的环境 | ||
. $SCC_SETUP_ENV | ||
|
||
# 从 spack 官方镜像下载一个预编译的编译器,重新源码自编译一遍作为默认编译器 | ||
# see <https://cache.spack.io/package/v0.21.2/gcc/specs/> | ||
# see <https://cache.spack.io/package/v0.22.0/gcc/specs/> | ||
$(dirname $SCC_SETUP_ENV)/init-default-compiler.sh "[email protected] target=x86_64_v3 os=ubuntu22.04" "[email protected]%[email protected]+binutils" "[email protected]" | ||
``` | ||
|
||
|