benchpark
benchpark copied to clipboard
variable expansion in spack.yaml not working properly
using configs/RCCS-Fugaku-Fujitsu-A64FX-TofuD/spack.yaml:
spack:
packages:
default-compiler:
spack_spec: {default_comp} {sys_arch}
default-mpi:
spack_spec: fujitsu-mpi@{fj_comp_version}%{default_comp} {sys_arch}
default_comp is defined as '[email protected]'
it worked for spack_spec: fujitsu-mpi@{fj_comp_version}%{default_comp} {sys_arch}
but for spack_spec: {default_comp} {sys_arch}
i'm getting the following error during ramble ... setup
==> Error: Error parsing yaml in "/vol0005/mdt3/data/ra000020/u10016/benchpark.llvm/configs/RCCS-Fugaku-Fujitsu-A64FX-TofuD/spack.yaml", line 9, column 7: expected <block end>, but found '{'
Can you try using quotes:
spack_spec: "{default_comp} {sys_arch}"
I think the YAML parser is having trouble with {}
in this case
@scheibelp yes, that workaround avoids the above error
This is a YAML issue, so not addressable by Spack/Ramble/Benchpark. Closing. Arguably re-open-able if one thinks a better error message would be ideal.