我应该如何修复 configure.yaml 文件?
How should I fix the configure.yaml file?
我正在尝试使用 spack 安装 hpctoolkit。为此,我执行了:
git clone https://github.com/spack/spack.git
cd spack/share/spack
source setup-env.sh
spack fetch -D hpctoolkit
spack install hpctoolkit
为了查看可用的编译器,我需要查看compilers.yaml的内容。
这是它的内容:
lcompilers:
- compiler:
spec: clang@10.0.0
paths:
cc: /usr/bin/clang
cxx: /usr/bin/clang++
f77: null
fc: null
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: clang@7.0.1
paths:
cc: null
cxx: null
f77: /usr/bin/flang
fc: /usr/bin/flang
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: gcc@10.2.0
paths:
cc: /usr/bin/gcc-10
cxx: null
f77: /usr/bin/gfortran-10
fc: /usr/bin/gfortran-10
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
正如您在这里看到的,我有 2 个编译器,分别是 clang(2 个实例)和 gcc。
在执行此命令之前,我认为文件已正确写入:
spack compiler list
这给了我以下错误:
==> Available compilers
==> Error: /home/hakim/.spack/linux/compilers.yaml:1: Additional properties are not allowed ('lcompilers' was unexpected)
文件在我修改之前运行良好。我删除了代表 gcc
的另一个版本的部分,即 gcc@9.3.0
(Spack 符号)。
错误提到 'lcompilers' 是意外的,但我很确定它在我修改文件之前就已经存在了。我所做的只是删除旧版本的 gcc。
尝试将 lcompilers
更改为 compilers
。这只是一个打字错误。
我正在尝试使用 spack 安装 hpctoolkit。为此,我执行了:
git clone https://github.com/spack/spack.git
cd spack/share/spack
source setup-env.sh
spack fetch -D hpctoolkit
spack install hpctoolkit
为了查看可用的编译器,我需要查看compilers.yaml的内容。 这是它的内容:
lcompilers:
- compiler:
spec: clang@10.0.0
paths:
cc: /usr/bin/clang
cxx: /usr/bin/clang++
f77: null
fc: null
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: clang@7.0.1
paths:
cc: null
cxx: null
f77: /usr/bin/flang
fc: /usr/bin/flang
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: gcc@10.2.0
paths:
cc: /usr/bin/gcc-10
cxx: null
f77: /usr/bin/gfortran-10
fc: /usr/bin/gfortran-10
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
正如您在这里看到的,我有 2 个编译器,分别是 clang(2 个实例)和 gcc。 在执行此命令之前,我认为文件已正确写入:
spack compiler list
这给了我以下错误:
==> Available compilers
==> Error: /home/hakim/.spack/linux/compilers.yaml:1: Additional properties are not allowed ('lcompilers' was unexpected)
文件在我修改之前运行良好。我删除了代表 gcc
的另一个版本的部分,即 gcc@9.3.0
(Spack 符号)。
错误提到 'lcompilers' 是意外的,但我很确定它在我修改文件之前就已经存在了。我所做的只是删除旧版本的 gcc。
尝试将 lcompilers
更改为 compilers
。这只是一个打字错误。