On Mon, Sep 25, 2023 at 08:24:14PM +0200, Tobias Burnus wrote: > I stumbled over this during the ARM64 talk at the cauldron as they > consider using -fopenmp-simd by default. > > → https://gcc.gnu.org/wiki/cauldron2023 (I put my talk/BoF slides up; > others aren't, yet) > > I did stumble over 'omp loop' with SIMD. It turns out that -fopenmp-simd > just turns 'loop' into 'simd', ignoring whatever value the user has > specified for the bind value.
I think that is desirable, because with -fopenmp-simd binding to teams, parallel and thread are the same thing, there is exactly one team and one thread in parallel. Sure, one can have multiple threads with -fopenmp-simd, but those are POSIX threads, while the binding of loop is to the OpenMP constructs. Even loop binds(team) is a way to express the iterations are vectorizable... Jakub