Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-kan authored May 14, 2024
1 parent e26ba13 commit d1d4000
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${SCC_IMAGE} as builder
ARG SCC_TARGET=x86_64_v3
ARG SCC_TAG=latest
ARG SCC_OPT=/sccenv/${SCC_TAG}
ARG SCC_SPACK_TAG=v0.21.2
ARG SCC_SPACK_TAG=v0.22.0
ENV SCC_SETUP_ENV=${SCC_OPT}/sysu-scc-spack-repo-${SCC_TAG}/share/sysu-scc-spack-repo/setup-env.sh
COPY . ${SCC_OPT}/sysu-scc-spack-repo-${SCC_TAG}
RUN <<EOF
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
```

Expand Down

0 comments on commit d1d4000

Please sign in to comment.