Closed DusanJovic-NOAA closed 4 years ago
Can we just remove all these aggressive optimizations / SIMD instructions for the release? Some of those you don't even know what will happen, -xHOST
for example might do all sorts of things on newer chips that we haven't tested.
In sorc/chgres_cube.fd/CMakeLists.txt AVX2 specific flag is set.
https://github.com/NOAA-EMC/UFS_UTILS/blob/512fdd483742e75b6da1430484278e9e0b8ba2d0/sorc/chgres_cube.fd/CMakeLists.txt#L8
This is not portable. For example on Hera I see a lot of warnings like:
We should not use cpu specific flags unless we are cross-compiling, for example on WCOSS Cray or Jet, and in such specific cases those flags should be added conditionally based on user specified option.