Skip to content

Remove support for non-power-of-2 SVE vector widths

Michael Kuron requested to merge sve into master

ARM retroactiveley removed non-power-of-2 vector widths from SVE last year. This allows us to remove some code. While we're at it, also enable CI testing for 128-bit width (which is what the ARM Neoverse N2 and V1 have).

pystencils in principle also supports 1024 and 2048 bits, which are the other two sizes that the SVE spec allows (for a total of five sizes, not 15 like before the non-power-of-2 sizes were removed), but Linux does not really support them. Both qemu-user and the Linux kernel will cap the width at 512 bits for this reason. Setting it to something higher at runtime will break any user-space executables that is not aware -- in our case the Docker container will just hang on startup. For details, see, and There is no hardware available (or even announced) that will have more than 512 bits, so it doesn't actually matter right now. There will probably one day be Linux distributions available that have more than 512 bits supported by their entire userspace (at which point these widths should be added to the CI job) -- glibc 2.34 is a requirement, but we already have that in our Docker image.

Edited by Michael Kuron

Merge request reports