GEOS-ESM / ESMA_cmake

Custom CMake macros for the GEOS Earth System Model
Apache License 2.0
4 stars 9 forks source link

Getting "unknown processor" error in esma_cmake #291

Closed natalie-perlin closed 1 year ago

natalie-perlin commented 1 year ago

Getting errors when compiling MAPL/2.22.0 that relies on esma_cmake/3.12.0, the error or "Unknown processor":

CMake Error at /home/natalie/HPC-stack/install/core/esma_cmake/v3.12.0/compiler/flags/GNU_Fortran.cmake:136 (message):
  Unknown processor.  Please file an issue at
  https://github.com/GEOS-ESM/ESMA_cmake

Running Ubuntu22.04 Linux, i9 processor. Output from "uname -a":

Linux natalie-Standard-PC-Q35-ICH9-2009 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Using gnu/10.4.0, mpich 3.3.2. Any other diagnostics needed, or any suggestions to update (quick-fix) the GNU_Fortran.cmake?

natalie-perlin commented 1 year ago

The solution that worked out, added to the following after the line 117 in ./compiler/flags/GNU_Fortran.cmake:

elseif ( ${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL x86_64 ) set (GNU_TARGET_ARCH "x86-64") set (GNU_NATIVE_ARCH "native")

natalie-perlin commented 1 year ago

A PR#292 offers solution of the issue.