benchpark icon indicating copy to clipboard operation
benchpark copied to clipboard

variable expansion in spack.yaml not working properly

Open jdomke opened this issue 10 months ago • 2 comments

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 '{'

jdomke avatar May 03 '24 16:05 jdomke

Can you try using quotes:

spack_spec: "{default_comp} {sys_arch}"

I think the YAML parser is having trouble with {} in this case

scheibelp avatar May 03 '24 17:05 scheibelp

@scheibelp yes, that workaround avoids the above error

jdomke avatar May 04 '24 02:05 jdomke

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.

scheibelp avatar May 24 '24 21:05 scheibelp