Nek5000 / nekRS

our next generation fast and scalable CFD code
https://nek5000.mcs.anl.gov/
Other
269 stars 71 forks source link

Build fails when using AppleClang #490

Closed OsKnoth closed 1 year ago

OsKnoth commented 1 year ago

Within clang as the standard C/C++ compiler I get the follwing error by executing ./nrsconfig

CMake Error at /usr/local/Cellar/cmake/3.19.7/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)

This happens on my MacBookPro (Intel) and my MacMini (M2).

stgeke commented 1 year ago

This is fixed in upcoming release (see release candidate in the next branch) as AppleClang does not support OpenMP. I suggest to use the GCC compilers - at least for now - otherwise you'll hit https://github.com/Nek5000/nekRS/issues/485

stgeke commented 1 year ago

Fixed in https://github.com/Nek5000/nekRS/commit/833f1b5a9e2e38279e93975c4227b7812fed8155