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

Should we remove the FindAVX cmake module and its use in EkatSetCompilersFlags? #45

Open
bartgol opened this issue Sep 17, 2020 · 0 comments
Labels
cmake question Further information is requested

Comments

@bartgol
Copy link
Contributor

bartgol commented Sep 17, 2020

Question

All that FindAVX.cmake does is probing /proc/cpuinfo for avx extensions, and set the AVX_VERSION cmake variable accordingly. Later, if the compiler is either Intel or GNU, EkatSetCompilerFlags will add the correct avx compiler flag, depending on AVX_VERSION.

I would consider removing this feature, for the following reasons:

  1. It only works if the node where we compile has the same architecture as the compute node.
  2. Only works for Intel and GNU.
  3. Kokkos_ARCH_XYZ already provides the vectorization flags, also for other compilers.
  4. It's yet another low level detail to maintain (rather than rely on kokkos).
@bartgol bartgol added question Further information is requested cmake labels Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant