Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove vector flags #49

Closed
kgerheiser opened this issue Nov 20, 2020 · 7 comments · Fixed by #319
Closed

Remove vector flags #49

kgerheiser opened this issue Nov 20, 2020 · 7 comments · Fixed by #319
Assignees
Labels
build Building software is complicated

Comments

@kgerheiser
Copy link
Contributor

Flags like -axCORE-AVX2 are sprinkled throughout the code. This can cause problems on heterogenous platforms like Jet.

Does grib_util need these flags? They've been removed from several other libraries.

@kgerheiser kgerheiser self-assigned this Nov 20, 2020
@edwardhartnett
Copy link
Contributor

I cannot find any such flags. Have they been removed or am I missing something?

@edwardhartnett
Copy link
Contributor

But it is used a lot in the CMakeLists.txt files:

find . -name '*'|xargs grep -s axCORE
./tocgrib2/CMakeLists.txt:  set(CMAKE_Fortran_FLAGS "-g -axCORE-AVX2 ${CMAKE_Fortran_FLAGS}")
./tocgrib/CMakeLists.txt:  set(CMAKE_Fortran_FLAGS "-g -assume noold_ldout_format -axCORE-AVX2 ${CMAKE_Fortran_FLAGS}")
./tocgrib2super/CMakeLists.txt:  set(CMAKE_Fortran_FLAGS "-g -assume noold_ldout_format -axCORE-AVX2 ${CMAKE_Fortran_FLAGS}")
./degrib2/CMakeLists.txt:  set(CMAKE_Fortran_FLAGS "-g -convert big_endian -axCORE-AVX2 -fpp ${CMAKE_Fortran_FLAGS}")
./grb2index/CMakeLists.txt:  set(CMAKE_Fortran_FLAGS "-g -convert big_endian -axCORE-AVX2 -fpp ${CMAKE_Fortran_FLAGS}")
./grbindex/CMakeLists.txt:      "-g -assume noold_ldout_format -convert big_endian -axCORE-AVX2 -fpp ${CMAKE_Fortran_FLAGS}")
./grib2grib/CMakeLists.txt:      "-g -i8 -r8 -assume noold_ldout_format -axCORE-AVX2 -fpp ${CMAKE_Fortran_FLAGS}")

@edwardhartnett edwardhartnett self-assigned this Jan 3, 2022
@edwardhartnett edwardhartnett added the build Building software is complicated label Jan 3, 2022
@edwardhartnett
Copy link
Contributor

@GeorgeVandenberghe-NOAA @Hang-Lei-NOAA @AlexanderRichert-NOAA what do you think about this issue?

We can just take these out, as @kgerheiser advised. I believe this will make no difference in output, and the tests will confirm that, but the test coverage is not great right now.

@Hang-Lei-NOAA
Copy link
Contributor

We can try this change to see if it works for all models.

@edwardhartnett
Copy link
Contributor

OK, let's do the next release, then take them out. That will give us some testing time without them.

@edwardhartnett
Copy link
Contributor

@AlexanderRichert-NOAA do you have any thoughts on this? I am planning on taking out these vector flags for the next release...

@AlexanderRichert-NOAA
Copy link
Contributor

I think it makes sense to remove them, then we can always set flags through spack-stack (incl. by system).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building software is complicated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants