Unexpected Result from OpenMP Parallel SIMD Reduction on M1
I had some unexpected result from openmp parallel simd reduction on Apple M1
with Clang 17.0.6
and -O3
, which I never met with gcc
. Eventually the problem reduces to the following example,