Skip to content

SVE-vector-length-bugfix

Piet Jarmatz requested to merge jarmatz/walberla:SVE-vector-length-bugfix into master

Compilation of waLBerla fails on our A64FX ARM systems, this merge request fixes it. It solves two problems:

  1. SVE_LENGTH contains a newline character, this leads to a line break in cmake generated makefiles, thus to a "missing separator" syntax error, so that try_compile fails. I used the REGEX REPLACE command to remove the line break, since the STRIP command seems to work only for some versions of CMake.
  2. sve_default_vector_length returns a vector length in bytes, not in bits. So it has to be converted before it can be passed to msve-vector-bits, otherwise it leads to compiler errors.

Merge request reports