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

Functional CMake build scripts #1

Merged
merged 11 commits into from
Mar 11, 2021
Merged

Functional CMake build scripts #1

merged 11 commits into from
Mar 11, 2021

Conversation

kvrigor
Copy link
Member

@kvrigor kvrigor commented Mar 11, 2021

Created CMake build scripts. Build succeeds on local dev machine (Ubuntu 20.04 LTS) and JUWELS (CentOS 8).

* Imported CMake modules required by PIO1 from https://github.com/ESMCI/cime/tree/cime5.6.33/src/externals/pio2/cmake
* Imported genf90.pl (a Fortran preprocessor script) from https://github.com/ESMCI/cime/blob/cime5.6.33/src/externals/genf90/genf90.pl
* Added install step to PIO1 CMakeLists.txt
* Created build script for Ubuntu 20.04LTS
…_Add

Set BUILD_ALWAYS=YES for gptl and mct to ensure libraries get rebuilt when source files are modified.
…m5 build work, and set global compile defs and flags.
Resolved cesm compile failures by fixing CMake scripts for clm5, datm, mosart, and stub_comps
…0.04LTS

* gptl: Added compile def -DFORTRANUNDERSCORE to fix linker failures due to unresolved gptl functions (e.g. "undefined reference to `gptlstart_")
* mct: Specified expected output static libraries
* csm_share: Added missing source file shr_reprosumx86.c. Arranged sources in alphabetical order for readability
* clm5: Added dependency to LAPACK. Used a more robust FindLAPACK.cmake module taken from https://github.com/scivision/lapack-cmake-meson/blob/02c08a55ed3a2e304923bb3f97d7114d50557a6d/cmake/Modules/FindLAPACK.cmake
@kvrigor kvrigor merged commit 92ea5d7 into master Mar 11, 2021
kvrigor added a commit that referenced this pull request Mar 11, 2021
Created CMake build scripts. Build succeeds on local dev machine (Ubuntu 20.04 LTS) and JUWELS (CentOS 8).
@kvrigor kvrigor deleted the devel-cmake branch April 15, 2021 07:33
kvrigor added a commit that referenced this pull request Aug 25, 2023
Error message for "Map Grid Size mismatch error"
```
 MCT::oas_m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
 LocalMap Gsize =       199920  RemoteMap Gsize =       108550
MCT::oas_m_ExchangeMaps::ExGSMapGSMap_: Map Grid Size mismatch error, stat =3
000.MCT(MPEU)::die.: from MCT::oas_m_ExchangeMaps::ExGSMapGSMap_()
application called MPI_Abort(MPI_COMM_WORLD, 2) - process 0
p_Abort(r0): aborting on users request
 MCT::oas_m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
 LocalMap Gsize =       108550  RemoteMap Gsize =       199920
MCT::oas_m_ExchangeMaps::ExGSMapGSMap_: Map Grid Size mismatch error, stat =3
0F0.MCT(MPEU)::die.: from MCT::oas_m_ExchangeMaps::ExGSMapGSMap_()
application called MPI_Abort(MPI_COMM_WORLD, 2) - process 240
p_Abort(r240): aborting on users request
forrtl: error (78): process killed (SIGTERM)
Image              PC                Routine            Line        Source
icon               0000000001BBFC6B  Unknown               Unknown  Unknown
libpthread-2.28.s  000014ED77C4FCF0  Unknown               Unknown  Unknown
libpthread-2.28.s  000014ED77C4EAB2  __read                Unknown  Unknown
libmpi.so.12.1.12  000014ED5E9831DF  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E986FA2  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E9595A5  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E816647  PMPI_Abort            Unknown  Unknown
libmpifort.so.12.  000014ED78BEBA2D  mpi_abort             Unknown  Unknown
icon               0000000001B249C4  Unknown               Unknown  Unknown
icon               0000000001B23BA4  Unknown               Unknown  Unknown
icon               0000000001AFF0B2  Unknown               Unknown  Unknown
icon               0000000001AE1D7A  Unknown               Unknown  Unknown
icon               0000000001935755  Unknown               Unknown  Unknown
icon               0000000001992025  Unknown               Unknown  Unknown
icon               000000000042B411  mo_atmo_model_mp_         304  mo_atmo_model.f90
icon               00000000004173DB  MAIN__                    229  icon.f90
icon               0000000000416FE2  Unknown               Unknown  Unknown
libc-2.28.so       000014ED6E792D85  __libc_start_main     Unknown  Unknown
icon               0000000000416EEE  Unknown               Unknown  Unknown
```

Error message for "array PARTITION error"
```
forrtl: severe (408): fort: (2): Subscript #1 of the array PARTITION has value 201 which is greater than the upper bound of 200

Image              PC                Routine            Line        Source
eclm.exe           0000000003F54CAF  Unknown               Unknown  Unknown
eclm.exe           000000000104F11F  oas_definemod_mp_          58  oas_defineMod.F90
eclm.exe           00000000007FA4BD  lnd_comp_mct_mp_l         242  lnd_comp_mct.F90
eclm.exe           0000000000469837  component_mod_mp_         267  component_mod.F90
eclm.exe           000000000042CCB9  cime_comp_mod_mp_        1252  cime_comp_mod.F90
eclm.exe           000000000045F80C  MAIN__                    114  cime_driver.F90
eclm.exe           000000000041AB62  Unknown               Unknown  Unknown
libc-2.28.so       00001521FB380D85  __libc_start_main     Unknown  Unknown
eclm.exe           000000000041AA6E  Unknown               Unknown  Unknown
```
kvrigor added a commit that referenced this pull request Aug 25, 2023
Error message for "Map Grid Size mismatch error"
```
 MCT::oas_m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
 LocalMap Gsize =       199920  RemoteMap Gsize =       108550
MCT::oas_m_ExchangeMaps::ExGSMapGSMap_: Map Grid Size mismatch error, stat =3
000.MCT(MPEU)::die.: from MCT::oas_m_ExchangeMaps::ExGSMapGSMap_()
application called MPI_Abort(MPI_COMM_WORLD, 2) - process 0
p_Abort(r0): aborting on users request
 MCT::oas_m_ExchangeMaps::ExGSMapGSMap_:: MCTERROR, Grid Size mismatch
 LocalMap Gsize =       108550  RemoteMap Gsize =       199920
MCT::oas_m_ExchangeMaps::ExGSMapGSMap_: Map Grid Size mismatch error, stat =3
0F0.MCT(MPEU)::die.: from MCT::oas_m_ExchangeMaps::ExGSMapGSMap_()
application called MPI_Abort(MPI_COMM_WORLD, 2) - process 240
p_Abort(r240): aborting on users request
forrtl: error (78): process killed (SIGTERM)
Image              PC                Routine            Line        Source
icon               0000000001BBFC6B  Unknown               Unknown  Unknown
libpthread-2.28.s  000014ED77C4FCF0  Unknown               Unknown  Unknown
libpthread-2.28.s  000014ED77C4EAB2  __read                Unknown  Unknown
libmpi.so.12.1.12  000014ED5E9831DF  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E986FA2  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E9595A5  Unknown               Unknown  Unknown
libmpi.so.12.1.12  000014ED5E816647  PMPI_Abort            Unknown  Unknown
libmpifort.so.12.  000014ED78BEBA2D  mpi_abort             Unknown  Unknown
icon               0000000001B249C4  Unknown               Unknown  Unknown
icon               0000000001B23BA4  Unknown               Unknown  Unknown
icon               0000000001AFF0B2  Unknown               Unknown  Unknown
icon               0000000001AE1D7A  Unknown               Unknown  Unknown
icon               0000000001935755  Unknown               Unknown  Unknown
icon               0000000001992025  Unknown               Unknown  Unknown
icon               000000000042B411  mo_atmo_model_mp_         304  mo_atmo_model.f90
icon               00000000004173DB  MAIN__                    229  icon.f90
icon               0000000000416FE2  Unknown               Unknown  Unknown
libc-2.28.so       000014ED6E792D85  __libc_start_main     Unknown  Unknown
icon               0000000000416EEE  Unknown               Unknown  Unknown
```

Error message for "array PARTITION error"
```
forrtl: severe (408): fort: (2): Subscript #1 of the array PARTITION has value 201 which is greater than the upper bound of 200

Image              PC                Routine            Line        Source
eclm.exe           0000000003F54CAF  Unknown               Unknown  Unknown
eclm.exe           000000000104F11F  oas_definemod_mp_          58  oas_defineMod.F90
eclm.exe           00000000007FA4BD  lnd_comp_mct_mp_l         242  lnd_comp_mct.F90
eclm.exe           0000000000469837  component_mod_mp_         267  component_mod.F90
eclm.exe           000000000042CCB9  cime_comp_mod_mp_        1252  cime_comp_mod.F90
eclm.exe           000000000045F80C  MAIN__                    114  cime_driver.F90
eclm.exe           000000000041AB62  Unknown               Unknown  Unknown
libc-2.28.so       00001521FB380D85  __libc_start_main     Unknown  Unknown
eclm.exe           000000000041AA6E  Unknown               Unknown  Unknown
```
jjokella added a commit that referenced this pull request Jul 25, 2024
because of error

```
forrtl: severe (408): fort: (3): Subscript #1 of the array LND_RESUME
has value 0 which is less than the lower bound of 1
```
jjokella added a commit that referenced this pull request Jul 26, 2024
```
:error #5561: Subscript #1 of the array LND_RESUME has value 0 which is less than the lower bound of 1
    write(iulog,*) 'eCLM(lnd_comp_mct): iam, lnd_resume(0) ', iam, lnd_resume(0)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant