Skip to content

Add mepo and geos-gcm-env#372

Merged
climbfuji merged 16 commits intoJCSDA:jcsda_emc_spack_stackfrom
climbfuji:feature/geos_gcm_dependencies
Jan 17, 2024
Merged

Add mepo and geos-gcm-env#372
climbfuji merged 16 commits intoJCSDA:jcsda_emc_spack_stackfrom
climbfuji:feature/geos_gcm_dependencies

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji commented Nov 22, 2023

Description

This PR adds the mepo package and geos-gcm-env. I was able to build geos-gcm develop on my macOS after building an environment with just geos-gcm-env and loading the modules. I didn't run any tests though, and certainly need help from @mathomp4 with that. Update. After many hours of debugging and back and forth, I was able to run geos on Discover using the spack-stack libraries (note that geos builds mapl internally, therefore not using the spack-stack version at the moment). Thanks very much to @mathomp4 for all the help.

Issue(s) addressed

Resolves JCSDA/spack-stack#242 (turns out on all of these packages are needed for geos-gcm)

Dependencies

n/a

Impact

n/a

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have run the unit tests before creating the PR

@climbfuji climbfuji requested a review from mathomp4 November 22, 2023 03:50
@climbfuji climbfuji self-assigned this Nov 22, 2023
@climbfuji climbfuji added the INFRA JEDI Infrastructure label Nov 22, 2023
@climbfuji
Copy link
Copy Markdown
Collaborator Author

@mathomp4 This is still a draft PR, but I wanted to get your input on the changes and a hint or two for how to test my build!

@mathomp4
Copy link
Copy Markdown
Collaborator

I hope to be able to look at/work on this next week. But for @climbfuji 's benefit, here is an attempt from a few months ago I made for both geosgcm and mepo:

jcsda_emc_spack_stack...GMAO-SI-Team:spack:feature/mathomp4/add-geosgcm

It's quite out of date in that at the time we still used FLAP instead of fArgParse, but I am happy I got pretty close on the mepo package :)

@mathomp4
Copy link
Copy Markdown
Collaborator

As for how to test the build, well you can try to follow along with:

https://github.com/GEOS-ESM/GEOSgcm/wiki/Setting-up-an-AMIP-Experiment
https://github.com/GEOS-ESM/GEOSgcm/wiki/Running-an-AMIP-Experiment

but the easier path might be:

  1. Go to your install/bin directory
  2. Run ~mathomp4/bin/create_expt.py --expdir /discover/nobackup/dheinzel/Experiments test-c48
  3. Run cd /discover/nobackup/dheinzel/Experiments/test-c48
  4. Run ~mathomp4/bin/makeoneday.bash
  5. Run sbatch gcm_run.j

That should work...though I'm probably missing some "new user issue" that we'll have to debug when you try (might need to add, say, --account x1234 to the create_expt command or something).

@climbfuji
Copy link
Copy Markdown
Collaborator Author

As for how to test the build, well you can try to follow along with:

https://github.com/GEOS-ESM/GEOSgcm/wiki/Setting-up-an-AMIP-Experiment https://github.com/GEOS-ESM/GEOSgcm/wiki/Running-an-AMIP-Experiment

but the easier path might be:

  1. Go to your install/bin directory
  2. Run ~mathomp4/bin/create_expt.py --expdir /discover/nobackup/dheinzel/Experiments test-c48
  3. Run cd /discover/nobackup/dheinzel/Experiments/test-c48
  4. Run ~mathomp4/bin/makeoneday.bash
  5. Run sbatch gcm_run.j

That should work...though I'm probably missing some "new user issue" that we'll have to debug when you try (might need to add, say, --account x1234 to the create_expt command or something).

I'll try that. But the real challenge is to repeat the same on my macOS, which is where I built geos-gcm with the changes in this PR.

@mathomp4
Copy link
Copy Markdown
Collaborator

mathomp4 commented Nov 22, 2023

I'll try that. But the real challenge is to repeat the same on my macOS, which is where I built geos-gcm with the changes in this PR.

Ahh. For macOS (or non-NASA systems) you need something like my TinyBCs. On discover you'll find:

/gpfsm/dnb44/mathomp4/TinyBCs-GitV10.2023Sep25.tar.gz

copy that locally and extract it somewhere. For example on my mac it's at ~/ModelData/TinyBCs-GitV10

Then, you can build the model and do the same as above but use (using my path):

cd /path/to/install/bin
~/ModelData/TinyBCs-GitV10/scripts/create_expt.py --expdir ~/Experiments test-c12
cd ~/Experiments/test-c12
~/ModelData/TinyBCs-GitV10/scripts/makeoneday.bash 
./gcm_run.j |& tee 1day.log

TinyBCs only does C12 and C24, so you use a lower res here. But that should work.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

I'll try that. But the real challenge is to repeat the same on my macOS, which is where I built geos-gcm with the changes in this PR.

Ahh. For macOS (or non-NASA systems) you need something like my TinyBCs. On discover you'll find:

/gpfsm/dnb44/mathomp4/TinyBCs-GitV10.2023Sep25.tar.gz

copy that locally and extract it somewhere. For example on my mac it's at ~/ModelData/TinyBCs-GitV10

Then, you can build the model and do the same as above but use (using my path):

cd /path/to/install/bin
~/ModelData/TinyBCs-GitV10/scripts/create_expt.py --expdir ~/Experiments test-c12
cd ~/Experiments/test-c12
~/ModelData/TinyBCs-GitV10/scripts/makeoneday.bash 
./gcm_run.j |& tee 1day.log

TinyBCs only does C12 and C24, so you use a lower res here. But that should work.

Hmm seems like a lot of paths in the gmc_run.j script are hardcoded to copy data from Discover etc. Maybe we can touch base next week and weed through the script?

@mathomp4
Copy link
Copy Markdown
Collaborator

Hmm seems like a lot of paths in the gmc_run.j script are hardcoded to copy data from Discover etc. Maybe we can touch base next week and weed through the script?

Indeed they are, but if you run makeoneday.bash from TinyBCs, it does a lot of sed'ing to replace them with paths from inside TinyBCs.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Hmm seems like a lot of paths in the gmc_run.j script are hardcoded to copy data from Discover etc. Maybe we can touch base next week and weed through the script?

Indeed they are, but if you run makeoneday.bash from TinyBCs, it does a lot of sed'ing to replace them with paths from inside TinyBCs.

Hmm, I still see things like

cp /discover/nobackup/projects/gmao/g6dev/ltakacs/MERRA2_NewLand/restarts/AMIP/M${month}/restarts.${year}${month}.tar .

in the resulting gcm_run.j. Can I do this on discover and then end up with a fully self-contained directory that I can sync over to my laptop and "just run mpirun -np N /path/to/geos_exe"?

@mathomp4
Copy link
Copy Markdown
Collaborator

Hmm, I still see things like

cp /discover/nobackup/projects/gmao/g6dev/ltakacs/MERRA2_NewLand/restarts/AMIP/M${month}/restarts.${year}${month}.tar .

in the resulting gcm_run.j. Can I do this on discover and then end up with a fully self-contained directory that I can sync over to my laptop and "just run mpirun -np N /path/to/geos_exe"?

Oh. You don't care about those. Those are for a very specific use case (EMIPs) that you don't run. Heck, I can't run them. I know they exist...but that's it.

I guess I can look at deleting those from the experiment on non-discover machines...but I guess I'm used to ignoring them.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

I commented out the lines for the emip stuff, also removed the basedir logic:

#source $GEOSBIN/g5_modules
#setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib

When I run the script, I get:

> ./gcm_run.j 2>&1 | tee gcm_run_1day.log
VERSION: GEOSgcm-v11.3.3
/bin/rm: No match.
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/AMIP is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/AMIP.20C is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/CICE6 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/MOM5 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/MOM6 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/mapl_tutorials is a directory (not copied).
cp: No match.
Copying /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/GEOSgcm.x to /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/scratch

[1] 35455
[2] 35456
[3] 35458
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_internal_rst .
[4] 35459
[5] 35462
[6] 35464
[7] 35466
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst .
[8] 35467
[7]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst .
[9] 35468
[2] 35470
[6] 35471
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_import_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/aiau_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/aiau_import_rst .
[9] 35472
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_import_rst .
[2] 35473
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/landice_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/landice_internal_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/surf_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/surf_import_rst .
[9] 35474
[4] 35475
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/irrad_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/irrad_internal_rst .
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/solar_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/solar_internal_rst .
[9] 35476
[2] 35477
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_internal_rst .
[4] 35478
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_import_rst .
[9] 35480
[6] 35481
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_import_rst .
[4] 35482
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_internal_rst .
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocartdata_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocartdata_internal_rst .
[9] 35483
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/du_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/du_internal_rst .
[4] 35484
[6] 35485
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ss_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ss_internal_rst .
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/lake_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/lake_internal_rst .
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/caoc_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/caoc_internal_rst .
[9] 35486
[3] 35487
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabc_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabc_internal_rst .
[4] 35488
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabr_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabr_internal_rst .
[9] 35489
[4]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/su_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/su_internal_rst .
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ni_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ni_internal_rst .
[3] 35490
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/achem_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/achem_internal_rst .
[9] 35491
[4] 35492
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_internal_rst .
[3] 35493
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_import_rst .
[9] 35494
[4]  - Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_internal_rst .
[1]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/fvcore_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/fvcore_internal_rst .
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_import_rst .
[1] 35495
[3] 35496
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/saltwater_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/saltwater_import_rst .
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/seaicethermo_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/seaicethermo_internal_rst .
[1]  - Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/openwater_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/openwater_internal_rst .
[2]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/pchem_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/pchem_internal_rst .
[8]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_internal_rst .
[5]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catch_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catch_internal_rst .
rm: gwd_internal_rst: No such file or directory
cp: /ford1/share/gmao_SIteam/ModelData/GWD_RIDGE/gwd_internal_c12: No such file or directory
/bin/ls: No match.
/bin/ln: No match.
Saltwater internal state is already split, good to go!
 Starting pFIO input server on Clients
 Starting pFIO output server on Clients

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

and then more errors afterwards. I'll look into this when I have time, but wanted to let you know for now.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

I guess I first need to know how to set

setenv  RSTDATE @RSTDATE
setenv  GCMEMIP @GCMEMIP

Like this?

setenv  RSTDATE "20231101"
setenv  GCMEMIP "FALSE"

@mathomp4
Copy link
Copy Markdown
Collaborator

I guess I first need to know how to set

setenv  RSTDATE @RSTDATE
setenv  GCMEMIP @GCMEMIP

Like this?

setenv  RSTDATE "20231101"
setenv  GCMEMIP "FALSE"

No. Again. Those are only used by EMIPs so those don't matter (you can see why we are rewriting our setup and run scripts in Python!)

But something weird is happening. This:

cp: /ford1/share/gmao_SIteam/ModelData/GWD_RIDGE/gwd_internal_c12: No such file or directory

makes me think makeoneday.bash didn't do its job. What was the console output when you ran that?

Also this:

setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib

needs to at least be:

setenv DYLD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${GEOSDIR}/lib

I think. You need the GEOSDIR libraries I'd imagine. (Unless we run from the install dir...)

@climbfuji
Copy link
Copy Markdown
Collaborator Author

climbfuji commented Nov 28, 2023 via email

@mathomp4
Copy link
Copy Markdown
Collaborator

Again, what is the output from running makeoneday.bash? Because this seems like you don't have a cap_restart in your experiment.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

This is the output of the TinyBCs create_expt.py script:

heinzell@JCSDA-L-18146:~/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/install/bin [brew-arch64]> ../../experiments/TinyBCs-GitV10/scripts/create_expt.py --expdir ../../experiments test-c12
You are calling create_expt.py from a portable BCs. Setting portable to true
Using account s1873

Using BACM_1M moist physics
Found c12 horizontal resolution in experiment name
Using c12 horizontal resolution

Using default for hydrostatic dynamics: True

Assuming default vertical resolution of 72
Using 72 vertical resolution

Assuming ocean o1
Using history: HISTORY.AGCM.rc.tmpl
Portable option passed in with horizontal resolution of c12. Using o1 ocean
Using o1 ocean resolution

Using emissions AMIP

Using Icarus-NLv3 land surface BCs

Using Catchment land surface model

Using BACM_1M default heartbeat of 450 seconds

Using actual aerosols
Using gocart input with landsurf
 Running gcm_setup...done.

Experiment is located in directory: ../../experiments/test-c12

And this is the output of makeoneday.bash:

> ../TinyBCs-GitV10/scripts/makeoneday.bash
Found gsed on macOS. Good job! You are smart!
Using Git v10 directories
Making one-day experiment
 TINY:      TRUE

../TinyBCs-GitV10/scripts/makeoneday_macsed.bash: line 729: type: colordiff: not found
Detected SITE: UNKNOWN, ASSUMING GMAO DESKTOP
Copying AGCM.rc to AGCM.rc.save...
Copying CAP.rc to CAP.rc.save...
Copying HISTORY.rc to HISTORY.rc.save...
Copying gcm_run.j to gcm_run.j.save...
Copying regress/gcm_regress.j to regress/gcm_regress.j.save...
Copying RC/GEOS_ChemGridComp.rc to RC/GEOS_ChemGridComp.rc.save...
Copying RC/GAAS_GridComp.rc to RC/GAAS_GridComp.rc.save...
Copying RC/GEOS_SurfaceGridComp.rc to RC/GEOS_SurfaceGridComp.rc.save...
Found Catchment land surface model
DYN_INTERNAL_RESTART_TYPE not found. Assuming NC4
Linking nc4 restarts for resolution c12 using 72 levels on ocean Reynolds with Catchment LSM from /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3...
Restarts have no EXTENSION...
./agcm_import_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/agcm_import_rst
./catch_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/catch_internal_rst
./fvcore_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/fvcore_internal_rst
./lake_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/lake_internal_rst
./landice_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/landice_internal_rst
./moist_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/moist_internal_rst
./openwater_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/openwater_internal_rst
./pchem_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/pchem_internal_rst
./seaicethermo_internal_rst -> /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/nc4/Reynolds/c12-NLv3/seaicethermo_internal_rst
Changes made to CAP.rc:
9,10c9,10
< JOB_SGMT:     00000015 000000
< NUM_SGMT:     20
---
> JOB_SGMT:     00000001 000000
> NUM_SGMT:     1


Running on unknown nodes with 10 cores per node

        NX from AGCM.rc                 (original): 1
        NY from AGCM.rc                 (original): 6
Num of PEs from AGCM.rc                 (original): 6
Num of nodes from AGCM.rc             (calculated): 1
Num of io nodes from AGCM.rc            (original): 0
Num of nodes from AGCM.rc with ioserver (original): 1

Final number of nodes with ioserver   (calculated): 1
Using minimal boundary datasets
Changes made to gcm_run.j:
7c7
< #SBATCH --time=12:00:00
---
> #SBATCH --time=0:15:00
11a12
> #SBATCH --mail-type=ALL
296,298c297,299
< setenv BCSDIR    /ford1/share/gmao_SIteam/ModelData/bcs/Icarus-NLv3/Icarus-NLv3_Reynolds
<  setenv SSTDIR    /ford1/share/gmao_SIteam/ModelData/SST/360x180
< setenv CHMDIR    /ford1/share/gmao_SIteam/ModelData/fvInput_nc3
---
> setenv BCSDIR   /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/bcs/Icarus-NLv3
>  setenv SSTDIR   /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/sst
> setenv CHMDIR   /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/chem
314,315c315,316
< ## Should include this >>>MOM5<<</bin/ln -s /ford1/share/gmao_SIteam/ModelData/aogcm/a48x25_o${OGCM_IM}x${OGCM_JM}/DC048xPC025_DE0360xPE0180-Pfafstetter.til tile_hist.data
< ## Should include this >>>MOM6<<</bin/ln -s /ford1/share/gmao_SIteam/ModelData/aogcm/MOM6/DC048xPC025_DE0360xPE0180/DC048xPC025_DE0360xPE0180-Pfafstetter.til tile_hist.data
---
> ### Should include this >>>MOM5<<</bin/ln -s /ford1/share/gmao_SIteam/ModelData/aogcm/a48x25_o${OGCM_IM}x${OGCM_JM}/DC048xPC025_DE0360xPE0180-Pfafstetter.til tile_hist.data
> ### Should include this >>>MOM6<<</bin/ln -s /ford1/share/gmao_SIteam/ModelData/aogcm/MOM6/DC048xPC025_DE0360xPE0180/DC048xPC025_DE0360xPE0180-Pfafstetter.til tile_hist.data
370,371c371,372
<  echo "/bin/ln -sf $SSTDIR"'/dataoceanfile_MERRA_sst_1971-current.360x180.LE   sst.data' >> $FILE
<  echo "/bin/ln -sf $SSTDIR"'/dataoceanfile_MERRA_fraci_1971-current.360x180.LE fraci.data' >> $FILE
---
>  echo "/bin/ln -sf $SSTDIR"'/dataoceanfile_MERRA_sst_2000.360x180.LE   sst.data' >> $FILE
>  echo "/bin/ln -sf $SSTDIR"'/dataoceanfile_MERRA_fraci_2000.360x180.LE fraci.data' >> $FILE
505c506
<     #/bin/cp /ford1/share/gmao_SIteam/ModelData/GWD_RIDGE/gwd_internal_c${AGCM_IM}_face_${n} gwd_internal_face_${n}_rst
---
> /bin/cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/GWD_RIDGE/gwd_internal_c${AGCM_IM} gwd_internal_rst
509c510
<   /bin/cp /ford1/share/gmao_SIteam/ModelData/GWD_RIDGE/gwd_internal_c${AGCM_IM} gwd_internal_rst
---
> /bin/cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/rs/GWD_RIDGE/gwd_internal_c${AGCM_IM} gwd_internal_rst
516c517
< if($numrs == 0) then
---
> if($numrs == 1) then
921a923
> exit $rc

Changes made to AGCM.rc:
874a875
> BERES_FILE_NAME: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/TinyBCs-GitV10/scripts/../../TinyBCs-GitV10/chem/g5gcm/gwd/newmfspectra40_dc25.nc

Changes made to regress/gcm_regress.j:
7c7
< #SBATCH --time=12:00:00
---
> #SBATCH --time=0:20:00

@mathomp4
Copy link
Copy Markdown
Collaborator

Huh. That all looks good to me.

Do you have a cap_restart file in your experiment directory?

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Huh. That all looks good to me.

Do you have a cap_restart file in your experiment directory?

Thanks for checking. Yes, I do:

> cat cap_restart
20000414 210000

@mathomp4
Copy link
Copy Markdown
Collaborator

Huh. Well, can you send me the output from gcm_run.j? Maybe there something I can see there. If not, I guess I'll need to do a Spack test myself.

I mean, if the model builds, we should be good...

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Huh. Well, can you send me the output from gcm_run.j? Maybe there something I can see there. If not, I guess I'll need to do a Spack test myself.

I mean, if the model builds, we should be good...

Sure, the output is in comment #372 (comment) (it looks like the script itself, because I added -x -v to the shebang).

@mathomp4
Copy link
Copy Markdown
Collaborator

This is the bit I think that screws it up:

setenv EXPDIR ../../experiments/test-c12
setenv HOMDIR ../../experiments/test-c12

Can you try running create_expt.py again but provide an absolute path to the --expdir?

I'm not sure anyone has ever tried passing in a relative path and that might be causing havoc.

If that's the issue, I can see how to fix that in python.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Sorry for my slow progress here. I used absolute paths for both create_expt.py and makeoneday.bash and that got me further! Now it's back to segfaulting:

> ./gcm_run.j 2>&1 | tee gcm_run.log

BASEDIR not found in environment or set by g5_modules
VERSION: GEOSgcm-v11.3.3
/bin/rm: No match.
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/AMIP is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/AMIP.20C is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/CICE6 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/MOM5 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/MOM6 is a directory (not copied).
cp: /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/RC/mapl_tutorials is a directory (not copied).
cp: No match.
Copying /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/GEOSgcm.x to /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/scratch

[1] 59454
[2] 59455
[3] 59457
[4] 59458
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_internal_rst .
[5] 59460
[6] 59462
[7] 59464
[8] 59465
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst .
[9] 59466
[7]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catchcn_internal_rst .
[2] 59468
[6] 59469
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/aiau_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/aiau_import_rst .
[9] 59470
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gwd_import_rst .
[2] 59471
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_import_rst .
[6] 59472
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/solar_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/solar_internal_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/surf_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/surf_import_rst .
[9] 59473
[6]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/irrad_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/irrad_internal_rst .
[2] 59474
[6] 59475
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_internal_rst .
[9] 59476
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/turb_import_rst .
[2] 59478
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_import_rst .
[9] 59479
[7] 59480
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocart_internal_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocartdata_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/gocartdata_internal_rst .
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/lake_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/lake_internal_rst .
[9] 59481
[7]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/du_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/du_internal_rst .
[2] 59482
[3] 59483
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ss_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ss_internal_rst .
[1]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/fvcore_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/fvcore_internal_rst .
[9] 59484
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/caoc_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/caoc_internal_rst .
[1] 59485
[3]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabc_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabc_internal_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabr_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/cabr_internal_rst .
[9] 59486
[2] 59487
[1]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ni_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/ni_internal_rst .
[1] 59488
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/su_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/su_internal_rst .
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/achem_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/achem_internal_rst .
[9] 59489
[2] 59490
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_import_rst .
[1]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/tr_internal_rst .
[9] 59491
[2]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_internal_rst .
[1] 59492
[2] 59493
[1]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/saltwater_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/saltwater_import_rst .
[9]    Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_import_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/hemco_import_rst .
[9] 59494
[9]  - Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/seaicethermo_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/seaicethermo_internal_rst .
[2]  - Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/openwater_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/openwater_internal_rst .
[6]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/pchem_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/pchem_internal_rst .
[8]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/moist_internal_rst .
[5]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catch_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/catch_internal_rst .
[4]  + Done                          if ( -e /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/landice_internal_rst ) cp /Users/heinzell/scratch/geos-gcm-spack-stack-1.5.1/GEOSgcm/experiments/test-c12/landice_internal_rst .
rm: gwd_internal_rst: No such file or directory
/bin/ls: No match.
/bin/ln: No match.
Saltwater internal state is already split, good to go!
 Starting pFIO input server on Clients
 Starting pFIO output server on Clients

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x11245f537
#1  0x11245e513
#2  0x18c02b4a3
#3  0x119dc08eb
#0  0x114387537
#1  0x114386513
#2  0x18c02b4a3
#3  0x11bce88eb
#0  0x11624b537
#1  0x11624a513
#2  0x18c02b4a3
#3  0x11dbac8eb
#0  0x111ec7537
#1  0x111ec6513
#2  0x18c02b4a3
#3  0x1198288eb
#0  0x111d17537
#1  0x111d16513
#2  0x18c02b4a3
#3  0x1196788eb
#0  0x115cdb537
#1  0x115cda513
#2  0x18c02b4a3
#3  0x11d63c8eb
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that process rank 5 with PID 0 on node JCSDA-L-18146 exited on signal 11 (Segmentation fault: 11).
--------------------------------------------------------------------------
GEOSgcm Run Status: -1

I'll take a look but wanted to let you know.

@mathomp4
Copy link
Copy Markdown
Collaborator

Okay. That means I might need to try this myself.

But first: what compilers/mpi/etc. is this using?

@climbfuji
Copy link
Copy Markdown
Collaborator Author

climbfuji commented Nov 29, 2023 via email

@mathomp4
Copy link
Copy Markdown
Collaborator

@climbfuji I think something got...nuked in your reply. It's all blank.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@climbfuji I think something got...nuked in your reply. It's all blank.

Ahh well ... apple-clang@13.1.6 and openmpi@4.1.5, sorry

@mathomp4
Copy link
Copy Markdown
Collaborator

Also, if you move away/rebuild, probably a good idea to rebuild GEOS. I don't think CMake found that .so, but if it did, maybe the build got wonky?

@climbfuji
Copy link
Copy Markdown
Collaborator Author

It failed again, but at least it looks like it is getting the correct mapl libraries:

/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/domtstintelnew/slurm-26564065.out

The errors for both rs_numtiles.x and GEOSgcm.x are double-free corruption and it always seems related to ExtData2G. I can rebuild mapl without ExtData2G in spack-stack. But I am wondering if I should build (or load) mapl at all if you build it as part of GEOS?

@mathomp4
Copy link
Copy Markdown
Collaborator

@climbfuji Yeah maybe try removing MAPL from spack-stack and testing that. You might have to manually then install GFE libraries if MAPL was bringing them in.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@climbfuji Yeah maybe try removing MAPL from spack-stack and testing that. You might have to manually then install GFE libraries if MAPL was bringing them in.

Yes - pflogger, fargparse and gftl-shared are already installed in spack-stack, all I had to do was load the modules. It's building.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Little difference after building from scratch w/o mapl in the environment:

/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/domtstintelnomapl/slurm-26573009.out

@mathomp4
Copy link
Copy Markdown
Collaborator

Little difference after building from scratch w/o mapl in the environment:

/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/domtstintelnomapl/slurm-26573009.out

Actually, the model ran! Huzzah! Now rs_numtiles.x crashed instantly which is odd. And then GEOS crashed at what looks like around MPI_Finalize? Not sure. So we are getting closer.

So a few things. First, I'm going to mention @bena-nasa here as I'm on leave next week and he might be able to try things while I'm gone.

Second, can you point me to your modules and how to get this setup? I just want to see if MPI Hello World falls apart.

Third, can you try this same combo of modules but with a Debug build of GEOS?

Fourth, what is the backing gcc compiler for your Intel stack? That is, we usually load GCC 11.2.0 and Intel 2021.6.0 so that icc and icpc have gcc/g++-11 as the backer to Intel.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Lots of good questions, and again thank you for your help. Answers inline below.

Little difference after building from scratch w/o mapl in the environment:

/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/domtstintelnomapl/slurm-26573009.out

Actually, the model ran! Huzzah! Now rs_numtiles.x crashed instantly which is odd. And then GEOS crashed at what looks like around MPI_Finalize? Not sure. So we are getting closer.

So a few things. First, I'm going to mention @bena-nasa here as I'm on leave next week and he might be able to try things while I'm gone.

Thanks!

Second, can you point me to your modules and how to get this setup? I just want to see if MPI Hello World falls apart.

> cat /discover/nobackup/projects/jcsda/s2127/dheinzel/setup_intel.sh
#!/bin/bash

module purge
module use /discover/swdev/jcsda/spack-stack/modulefiles
module load miniconda/3.9.7
module load ecflow/5.8.4
module load mysql/8.0.31

module use /discover/nobackup/projects/jcsda/s2127/dheinzel/spst-geos/envs/geos-env/install/modulefiles/Core
module load stack-intel/2022.0.1

module load stack-intel-oneapi-mpi/2021.5.0
module load stack-python/3.10.8
module load geos-gcm-env/1.0.0

Third, can you try this same combo of modules but with a Debug build of GEOS?

Will do - stay tuned

Fourth, what is the backing gcc compiler for your Intel stack? That is, we usually load GCC 11.2.0 and Intel 2021.6.0 so that icc and icpc have gcc/g++-11 as the backer to Intel.

> cat /discover/nobackup/projects/jcsda/s2127/dheinzel/spst-geos/envs/geos-env/site/compilers.yaml
compilers:
- compiler:
    spec: intel@2022.0.1
    paths:
      cc: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/icc
      cxx: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/icpc
      f77: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/ifort
      fc: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/ifort
    flags: {}
    operating_system: sles12
    target: x86_64
    modules:
    - comp/intel/2021.5.0
    environment:
      prepend_path:
        PATH: '/usr/local/other/gcc/10.1.0/bin'
        CPATH: '/usr/local/other/gcc/10.1.0/include'
        LD_LIBRARY_PATH: '/usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/compiler/lib/intel64_lin:/usr/local/other/gcc/10.1.0/lib64'
      set:
        I_MPI_ROOT: '/usr/local/intel/oneapi/2021/mpi/2021.5.0'
    extra_rpaths: []

@mathomp4
Copy link
Copy Markdown
Collaborator

Okay. Well, Hello World works just fine.

Perhaps the issue is the fact you are backing with gcc 10.1 instead of gcc 12.1? Maybe that's the next test if the Debug shows nothing?

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Debug output is here:

/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/domtstintelnomapldebug/slurm-26623629.out

At first glance, I didn't see much more useful information than w/o debug. The only change I made for the debug build was adding -DCMAKE_BUILD_TYPE=Debug to the cmake command.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Okay. Well, Hello World works just fine.

Perhaps the issue is the fact you are backing with gcc 10.1 instead of gcc 12.1? Maybe that's the next test if the Debug shows nothing?

Are you sure that GEOS is that finnicky in terms of compiler versions? I can give this a try in order to nail down the problem, but I am worried if that is really the case we'll be having a very hard time getting geos to run on other systems.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Okay. Well, Hello World works just fine.

Perhaps the issue is the fact you are backing with gcc 10.1 instead of gcc 12.1? Maybe that's the next test if the Debug shows nothing?

Maybe worth adding that the stack itself is very likely ok - we run all sorts of JEDI experiments with it: with fv3 (dycore), with geos (compiled externally and pulled in), ... - all 2000-ish ctests that come with jedi-bundle pass as well.

…. Add prerequisites for building mapl instead
@climbfuji
Copy link
Copy Markdown
Collaborator Author

@mathomp4 I rebuilt the spack-stack geos-gcm-env with Intel and gcc12 as backend, and redid the tests. Same result. rst_numtiles.x aborts with the same double-free corruption as before, and so does the model itself (it basically runs to completion, but when it cleans up after itself it crashes). Output is in /discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/slurm-27054866.out.

Times for component <GCM>
                                        Min                            Mean                           Max                     PE         # cycles
                            ============================   ============================   ============================   =============   ========
Name                          %    inclusive  exclusive      %    inclusive  exclusive      %    inclusive  exclusive     max    min
                          | ------ ---------- ---------- | ------ ---------- ---------- | ------ ---------- ---------- | ------ ------ |
GCM                       |   0.00     725.12       0.00 |   0.00     725.14       0.00 |   0.00     725.30       0.00 |  00000  00019 |      387
--SetService              |   0.38       3.52       2.78 |   0.38       3.52       2.78 |   0.38       3.53       2.78 |  00001  00018 |        1
----generic               |   0.10       0.74       0.74 |   0.10       0.74       0.74 |   0.10       0.75       0.75 |  00017  00014 |        1
--Initialize              |   0.00      14.17       0.00 |   0.00      14.18       0.00 |   0.00      14.18       0.00 |  00003  00019 |        1
----INITIALIZE            |   0.10      14.17       0.70 |   0.10      14.18       0.71 |   0.10      14.18       0.72 |  00015  00006 |        1
------AGCM                |   1.85      13.37      13.37 |   1.84      13.38      13.38 |   1.84      13.38      13.38 |  00004  00015 |        1
------AIAU                |   0.00       0.01       0.01 |   0.00       0.01       0.01 |   0.00       0.01       0.01 |  00006  00017 |        1
------ADFI                |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.01       0.01 |  00009  00006 |        1
------OGCM                |   0.01       0.04       0.04 |   0.01       0.04       0.04 |   0.01       0.05       0.05 |  00007  00001 |        1
------generic             |   0.00       0.03       0.03 |   0.00       0.03       0.03 |   0.00       0.03       0.03 |  00019  00015 |        1
--Record                  |   0.00       0.82       0.01 |   0.00       0.83       0.01 |   0.00       0.99       0.01 |  00000  00004 |      192
----AGCM                  |   0.09       0.67       0.67 |   0.09       0.68       0.68 |   0.11       0.81       0.81 |  00000  00019 |      192
----AIAU                  |   0.00       0.02       0.02 |   0.00       0.02       0.02 |   0.00       0.02       0.02 |  00000  00019 |      192
----ADFI                  |   0.00       0.02       0.02 |   0.00       0.02       0.02 |   0.00       0.02       0.02 |  00000  00019 |      192
----OGCM                  |   0.01       0.11       0.11 |   0.01       0.11       0.11 |   0.02       0.13       0.13 |  00000  00004 |      192
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00016  00006 |      192
--Run                     |   0.00     703.56       0.00 |   0.00     703.57       0.00 |   0.00     703.57       0.00 |  00014  00004 |      192
----GenRunMine            |   0.00     703.56       0.01 |   0.00     703.56       0.01 |   0.00     703.56       0.01 |  00000  00021 |      192
------RUN                 |   0.01     703.55       0.07 |   0.01     703.55       0.08 |   0.01     703.55       0.08 |  00016  00023 |      192
--------ATMOSPHERE        |   0.00     698.81       0.00 |   0.00     698.82       0.00 |   0.00     698.82       0.00 |  00000  00010 |      192
----------AGCM            |  96.51     698.81     698.81 |  96.37     698.82     698.82 |  96.21     698.82     698.82 |  00023  00000 |      192
--------A2O               |   0.13       0.93       0.93 |   0.13       0.93       0.93 |   0.13       0.93       0.93 |  00022  00003 |      192
--------OCEAN             |   0.00       2.35       0.00 |   0.00       3.04       0.00 |   0.00       3.37       0.00 |  00007  00017 |      192
----------OGCM            |   0.32       2.35       2.35 |   0.42       3.04       3.04 |   0.46       3.37       3.37 |  00005  00001 |      192
--------O2A               |   0.05       0.36       0.36 |   0.09       0.69       0.69 |   0.19       1.38       1.38 |  00001  00005 |      192
--Finalize                |   0.00       3.03       0.00 |   0.00       3.03       0.00 |   0.00       3.04       0.00 |  00005  00022 |        1
----AGCM                  |   0.41       2.94       2.94 |   0.41       2.94       2.94 |   0.41       2.95       2.95 |  00000  00017 |        1
----AIAU                  |   0.01       0.05       0.05 |   0.01       0.05       0.05 |   0.01       0.05       0.05 |  00021  00000 |        1
----ADFI                  |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.01       0.01 |  00000  00021 |        1
----OGCM                  |   0.00       0.03       0.03 |   0.00       0.03       0.03 |   0.01       0.04       0.04 |  00000  00001 |        1
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00000  00013 |        1


Times for component <HIST>
                                        Min                            Mean                           Max                     PE         # cycles
                            ============================   ============================   ============================   =============   ========
Name                          %    inclusive  exclusive      %    inclusive  exclusive      %    inclusive  exclusive     max    min
                          | ------ ---------- ---------- | ------ ---------- ---------- | ------ ---------- ---------- | ------ ------ |
HIST                      |   0.02       8.53       0.00 |   0.02       8.55       0.00 |   0.02       8.57       0.00 |  00016  00002 |      195
--SetService              |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00014  00005 |        1
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00015  00016 |        1
--Initialize              |  27.59       2.35       2.35 |  27.58       2.36       2.36 |  27.54       2.36       2.36 |  00000  00020 |        1
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00016  00001 |        1
--Run                     |   0.02       6.17       0.00 |   0.02       6.19       0.00 |   0.02       6.21       0.00 |  00001  00002 |      192
----GenRunMine            |   0.65       6.17       0.06 |   0.66       6.19       0.06 |   0.82       6.20       0.07 |  00000  00008 |      192
------Couplers            |  21.66       1.84       1.84 |  21.77       1.86       1.86 |  21.83       1.87       1.87 |  00011  00014 |      192
------I/O                 |   0.05       4.27       0.00 |   0.05       4.27       0.00 |   0.05       4.27       0.00 |  00023  00003 |      192
--------IO Create         |   0.09       0.01       0.01 |   0.10       0.01       0.01 |   0.11       0.01       0.01 |  00014  00023 |      192
--------IO Write          |   0.04       4.25       0.00 |   0.04       4.26       0.00 |   0.04       4.26       0.00 |  00014  00002 |      576
----------IO Post         |  49.86       4.25       4.25 |  49.72       4.25       4.25 |  49.52       4.25       4.25 |  00001  00000 |      192
----------IO Wait         |   0.00       0.00       0.00 |   0.01       0.00       0.00 |   0.01       0.00       0.00 |  00013  00004 |      192
----------IO Write        |   0.01       0.00       0.00 |   0.01       0.00       0.00 |   0.01       0.00       0.00 |  00002  00006 |      192
--Finalize                |   0.00       0.00       0.00 |   0.01       0.00       0.00 |   0.01       0.00       0.00 |  00022  00000 |        1
----generic               |   0.01       0.00       0.00 |   0.01       0.00       0.00 |   0.01       0.00       0.00 |  00000  00009 |        1


Times for component <EXTDATA>
                                        Min                            Mean                           Max                     PE         # cycles
                            ============================   ============================   ============================   =============   ========
Name                          %    inclusive  exclusive      %    inclusive  exclusive      %    inclusive  exclusive     max    min
                          | ------ ---------- ---------- | ------ ---------- ---------- | ------ ---------- ---------- | ------ ------ |
EXTDATA                   |   0.00      41.52       0.00 |   0.00      41.53       0.00 |   0.00      41.54       0.00 |  00013  00004 |      195
--SetService              |   0.06       0.02       0.02 |   0.07       0.03       0.03 |   0.07       0.03       0.03 |  00013  00000 |        1
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00016  00015 |        1
--Initialize              |   0.02       1.32       0.01 |   0.03       1.32       0.01 |   0.03       1.32       0.01 |  00020  00000 |        1
----Initialize            |   3.16       1.31       1.31 |   3.15       1.31       1.31 |   3.15       1.32       1.32 |  00000  00016 |        1
------generic             |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00011  00014 |        1
--Run                     |   0.00      40.18       0.00 |   0.00      40.18       0.00 |   0.00      40.19       0.00 |  00001  00016 |      192
----GenRunMine            |   0.02      40.17       0.01 |   0.02      40.18       0.01 |   0.02      40.19       0.01 |  00000  00008 |      192
------Run                 |   0.01      40.16       0.00 |   0.01      40.17       0.00 |   0.01      40.18       0.00 |  00000  00022 |      192
--------Read_Loop         |   8.53      39.26       3.53 |   8.52      39.29       3.54 |   8.53      39.30       3.56 |  00008  00011 |      192
----------CheckUpd        |   0.10       0.04       0.04 |   0.10       0.04       0.04 |   0.11       0.04       0.04 |  00021  00001 |    12480
----------PRead           |   0.01      35.67       0.00 |   0.01      35.71       0.01 |   0.01      35.73       0.01 |  00021  00013 |      192
------------CreateCFIO    |   0.01       0.00       0.00 |   0.01       0.00       0.00 |   0.01       0.00       0.00 |  00022  00018 |      192
------------prefetch      |  65.64      27.14      27.14 |  65.39      27.16      27.16 |  65.16      27.17      27.17 |  00006  00008 |      192
------------IclientDone   |  16.86       6.97       6.97 |  16.92       7.03       7.03 |  17.05       7.11       7.11 |  00006  00000 |      192
------------read-prefetch |   3.48       1.44       1.44 |   3.65       1.52       1.52 |   3.66       1.52       1.52 |  00000  00006 |      192
--------Interpolate       |   2.10       0.87       0.87 |   2.11       0.88       0.88 |   2.17       0.91       0.91 |  00000  00016 |      192
--Finalize                |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00014  00021 |        1
----generic               |   0.00       0.00       0.00 |   0.00       0.00       0.00 |   0.00       0.00       0.00 |  00000  00008 |        1

 NOT using buffer I/O for file: cap_restart
Model Throughput:      111.337 days per day
Report on process: 0
                                                               Inclusive        Exclusive
                                                            ================ ================
Name                                               #-cycles  T (sec)    %     T (sec)    %
                                                   -------- --------- ------ --------- ------
All                                                       1   776.248 100.00     0.368   0.05
--SetService                                              1     3.567   0.46     0.016   0.00
----GCM                                                   1     3.528   0.45     0.757   0.10
------AGCM                                                1     2.749   0.35     0.042   0.01
--------SUPERDYNAMICS                                     1     1.210   0.16     0.022   0.00
----------DYN                                             1     1.188   0.15     1.188   0.15
--------PHYSICS                                           1     1.496   0.19     0.322   0.04
----------GWD                                             1     0.054   0.01     0.054   0.01
----------MOIST                                           1     0.100   0.01     0.100   0.01
----------TURBULENCE                                      1     0.024   0.00     0.024   0.00
----------CHEMISTRY                                       1     0.649   0.08     0.168   0.02
------------CHEMENV                                       1     0.046   0.01     0.046   0.01
------------HEMCO                                         1     0.188   0.02     0.188   0.02
------------PCHEM                                         1     0.025   0.00     0.025   0.00
------------ACHEM                                         1     0.025   0.00     0.025   0.00
------------GOCART                                        1     0.016   0.00     0.016   0.00
------------GOCART2G                                      1     0.171   0.02     0.085   0.01
--------------DU                                          1     0.011   0.00     0.011   0.00
--------------SS                                          1     0.007   0.00     0.007   0.00
--------------CA.oc                                       1     0.007   0.00     0.007   0.00
--------------CA.bc                                       1     0.006   0.00     0.006   0.00
--------------CA.br                                       1     0.006   0.00     0.006   0.00
--------------SU                                          1     0.028   0.00     0.028   0.00
--------------NI                                          1     0.019   0.00     0.019   0.00
------------TR                                            1     0.011   0.00     0.011   0.00
----------SURFACE                                         1     0.235   0.03     0.038   0.00
------------SALTWATER                                     1     0.079   0.01     0.041   0.01
--------------SEAICETHERMO                                1     0.014   0.00     0.014   0.00
--------------OPENWATER                                   1     0.024   0.00     0.024   0.00
------------LAKE                                          1     0.011   0.00     0.011   0.00
------------LANDICE                                       1     0.021   0.00     0.021   0.00
------------LAND                                          1     0.086   0.01     0.070   0.01
--------------VEGDYN                                      1     0.001   0.00     0.001   0.00
--------------CATCH                                       1     0.015   0.00     0.015   0.00
----------RADIATION                                       1     0.111   0.01     0.023   0.00
------------SOLAR                                         1     0.023   0.00     0.023   0.00
------------IRRAD                                         1     0.043   0.01     0.043   0.01
------------SATSIM                                        1     0.021   0.00     0.021   0.00
--------ORBIT                                             1     0.000   0.00     0.000   0.00
------AIAU                                                1     0.002   0.00     0.002   0.00
------ADFI                                                1     0.003   0.00     0.003   0.00
------OGCM                                                1     0.016   0.00     0.008   0.00
--------ORAD                                              1     0.002   0.00     0.002   0.00
--------SEAICE                                            1     0.002   0.00     0.001   0.00
----------DATASEAICE                                      1     0.001   0.00     0.001   0.00
--------OCEAN                                             1     0.004   0.00     0.003   0.00
----------DATASEA                                         1     0.001   0.00     0.001   0.00
----HIST                                                  1     0.000   0.00     0.000   0.00
----EXTDATA                                               1     0.023   0.00     0.023   0.00
--Initialize                                              1    17.912   2.31     0.049   0.01
----GCM                                                   1    14.176   1.83     0.742   0.10
------AGCM                                                1    13.375   1.72     0.090   0.01
--------SUPERDYNAMICS                                     1     0.420   0.05     0.022   0.00
----------DYN                                             1     0.397   0.05     0.397   0.05
--------PHYSICS                                           1    12.863   1.66     0.194   0.03
----------GWD                                             1     0.127   0.02     0.127   0.02
----------MOIST                                           1     0.481   0.06     0.481   0.06
----------TURBULENCE                                      1     0.078   0.01     0.078   0.01
----------CHEMISTRY                                       1     1.597   0.21     0.082   0.01
------------CHEMENV                                       1     0.022   0.00     0.022   0.00
------------HEMCO                                         1     0.160   0.02     0.160   0.02
------------PCHEM                                         1     0.206   0.03     0.206   0.03
------------ACHEM                                         1     0.011   0.00     0.011   0.00
------------GOCART                                        1     0.046   0.01     0.046   0.01
------------GOCART2G                                      1     1.020   0.13     0.040   0.01
--------------DU                                          1     0.118   0.02     0.118   0.02
--------------SS                                          1     0.120   0.02     0.120   0.02
--------------CA.oc                                       1     0.140   0.02     0.140   0.02
--------------CA.bc                                       1     0.119   0.02     0.119   0.02
--------------CA.br                                       1     0.149   0.02     0.149   0.02
--------------SU                                          1     0.157   0.02     0.157   0.02
--------------NI                                          1     0.178   0.02     0.178   0.02
------------TR                                            1     0.050   0.01     0.050   0.01
----------SURFACE                                         1     9.823   1.27     0.350   0.05
------------SALTWATER                                     1     0.510   0.07     0.052   0.01
--------------SEAICETHERMO                                1     0.204   0.03     0.204   0.03
--------------OPENWATER                                   1     0.254   0.03     0.254   0.03
------------LAKE                                          1     0.033   0.00     0.033   0.00
------------LANDICE                                       1     0.061   0.01     0.061   0.01
------------LAND                                          1     8.868   1.14     0.098   0.01
--------------VEGDYN                                      1     0.418   0.05     0.418   0.05
--------------CATCH                                       1     8.352   1.08     8.352   1.08
----------RADIATION                                       1     0.563   0.07     0.390   0.05
------------SOLAR                                         1     0.041   0.01     0.041   0.01
------------IRRAD                                         1     0.027   0.00     0.027   0.00
------------SATSIM                                        1     0.106   0.01     0.106   0.01
--------ORBIT                                             1     0.002   0.00     0.002   0.00
------AIAU                                                1     0.009   0.00     0.009   0.00
------ADFI                                                1     0.005   0.00     0.005   0.00
------OGCM                                                1     0.045   0.01     0.012   0.00
--------ORAD                                              1     0.007   0.00     0.007   0.00
--------SEAICE                                            1     0.007   0.00     0.004   0.00
----------DATASEAICE                                      1     0.003   0.00     0.003   0.00
--------OCEAN                                             1     0.018   0.00     0.015   0.00
----------DATASEA                                         1     0.003   0.00     0.003   0.00
----HIST                                                  1     2.364   0.30     2.364   0.30
----EXTDATA                                               1     1.323   0.17     1.323   0.17
--Run                                                     1   751.327  96.79     0.308   0.04
----EXTDATA                                             192    40.179   5.18    40.179   5.18
----GCM                                                 384   704.576  90.77     2.249   0.29
------AGCM                                              384   699.612  90.13     1.194   0.15
--------SUPERDYNAMICS                                   576   119.723  15.42     0.142   0.02
----------DYN                                           576   119.581  15.40   119.581  15.40
--------PHYSICS                                         384   578.662  74.55     2.453   0.32
----------GWD                                           384     1.605   0.21     1.605   0.21
----------MOIST                                         384    40.798   5.26    40.798   5.26
----------TURBULENCE                                    576     8.081   1.04     8.081   1.04
----------CHEMISTRY                                     576   333.978  43.02     0.250   0.03
------------CHEMENV                                     576     0.977   0.13     0.977   0.13
------------HEMCO                                       576     0.796   0.10     0.796   0.10
------------PCHEM                                       384     3.959   0.51     3.959   0.51
------------ACHEM                                       384     0.389   0.05     0.389   0.05
------------GOCART                                      576     0.507   0.07     0.507   0.07
------------GOCART2G                                    576    27.349   3.52     0.344   0.04
--------------DU                                        576     4.907   0.63     4.907   0.63
--------------SS                                        576     5.047   0.65     5.047   0.65
--------------CA.oc                                     576     2.542   0.33     2.542   0.33
--------------CA.bc                                     576     2.489   0.32     2.489   0.32
--------------CA.br                                     576     2.511   0.32     2.511   0.32
--------------SU                                        576     3.229   0.42     3.229   0.42
--------------NI                                        576     6.279   0.81     6.279   0.81
------------TR                                          384   299.750  38.62   299.750  38.62
----------SURFACE                                       576   152.522  19.65    31.619   4.07
------------SALTWATER                                   576    10.973   1.41     0.799   0.10
--------------SEAICETHERMO                              576     3.476   0.45     3.476   0.45
--------------OPENWATER                                 576     6.698   0.86     6.698   0.86
------------LAKE                                        576     0.300   0.04     0.300   0.04
------------LANDICE                                     576     0.322   0.04     0.322   0.04
------------LAND                                        576   109.307  14.08     0.109   0.01
--------------VEGDYN                                    384     1.390   0.18     1.390   0.18
--------------CATCH                                     576   107.808  13.89   107.808  13.89
----------RADIATION                                     384    39.225   5.05     0.259   0.03
------------SOLAR                                       384    20.209   2.60    20.209   2.60
------------IRRAD                                       384    16.364   2.11    16.364   2.11
------------SATSIM                                      384     2.392   0.31     2.392   0.31
--------ORBIT                                           384     0.034   0.00     0.034   0.00
------AIAU                                              192     0.016   0.00     0.016   0.00
------ADFI                                              384     0.052   0.01     0.052   0.01
------OGCM                                              384     2.647   0.34     0.499   0.06
--------ORAD                                            384     0.183   0.02     0.183   0.02
--------SEAICE                                          384     0.905   0.12     0.099   0.01
----------DATASEAICE                                    384     0.806   0.10     0.806   0.10
--------OCEAN                                           384     1.060   0.14     0.234   0.03
----------DATASEA                                       384     0.826   0.11     0.826   0.11
----HIST                                                384     6.264   0.81     6.264   0.81
--Finalize                                                1     3.073   0.40     0.004   0.00
----GCM                                                   1     3.054   0.39     0.012   0.00
------AGCM                                                1     2.951   0.38     0.010   0.00
--------SUPERDYNAMICS                                     1     0.077   0.01     0.007   0.00
----------DYN                                             1     0.070   0.01     0.070   0.01
--------PHYSICS                                           1     2.860   0.37     0.014   0.00
----------GWD                                             1     0.053   0.01     0.053   0.01
----------MOIST                                           1     0.199   0.03     0.199   0.03
----------TURBULENCE                                      1     0.133   0.02     0.133   0.02
----------CHEMISTRY                                       1     0.505   0.07     0.016   0.00
------------CHEMENV                                       1     0.005   0.00     0.005   0.00
------------HEMCO                                         1     0.075   0.01     0.075   0.01
------------PCHEM                                         1     0.052   0.01     0.052   0.01
------------ACHEM                                         1     0.019   0.00     0.019   0.00
------------GOCART                                        1     0.027   0.00     0.027   0.00
------------GOCART2G                                      1     0.255   0.03     0.013   0.00
--------------DU                                          1     0.050   0.01     0.050   0.01
--------------SS                                          1     0.041   0.01     0.041   0.01
--------------CA.oc                                       1     0.016   0.00     0.016   0.00
--------------CA.bc                                       1     0.016   0.00     0.016   0.00
--------------CA.br                                       1     0.016   0.00     0.016   0.00
--------------SU                                          1     0.050   0.01     0.050   0.01
--------------NI                                          1     0.051   0.01     0.051   0.01
------------TR                                            1     0.055   0.01     0.055   0.01
----------SURFACE                                         1     1.773   0.23     0.044   0.01
------------SALTWATER                                     1     0.345   0.04     0.184   0.02
--------------SEAICETHERMO                                1     0.081   0.01     0.081   0.01
--------------OPENWATER                                   1     0.080   0.01     0.080   0.01
------------LAKE                                          1     0.014   0.00     0.014   0.00
------------LANDICE                                       1     0.022   0.00     0.022   0.00
------------LAND                                          1     1.348   0.17     0.010   0.00
--------------VEGDYN                                      1     0.005   0.00     0.005   0.00
--------------CATCH                                       1     1.334   0.17     1.334   0.17
----------RADIATION                                       1     0.183   0.02     0.009   0.00
------------SOLAR                                         1     0.070   0.01     0.070   0.01
------------IRRAD                                         1     0.099   0.01     0.099   0.01
------------SATSIM                                        1     0.005   0.00     0.005   0.00
--------ORBIT                                             1     0.005   0.00     0.005   0.00
------AIAU                                                1     0.047   0.01     0.047   0.01
------ADFI                                                1     0.005   0.00     0.005   0.00
------OGCM                                                1     0.039   0.01     0.010   0.00
--------ORAD                                              1     0.005   0.00     0.005   0.00
--------SEAICE                                            1     0.012   0.00     0.007   0.00
----------DATASEAICE                                      1     0.005   0.00     0.005   0.00
--------OCEAN                                             1     0.012   0.00     0.007   0.00
----------DATASEA                                         1     0.005   0.00     0.005   0.00
----HIST                                                  1     0.008   0.00     0.008   0.00
----EXTDATA                                               1     0.008   0.00     0.008   0.00
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c723320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c07d320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001ad26320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c68f320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001aa0d320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001afb7320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c882320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c1e0320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001bdbb320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c712320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c818320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c773320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001ab2b320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c5b5320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001b0ec320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c03f320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001b0c6320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001ac8a320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001c853320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001ba6b320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001bcbb320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001b767320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001aa88320 ***
*** Error in `/discover/nobackup/projects/jcsda/s2127/dheinzel/geos-gcm-11.3.3/experiments/intelgcc12-nomapl-debug/scratch/GEOSgcm.x': double free or corruption (!prev): 0x000000001b4ea320 ***

@mathomp4
Copy link
Copy Markdown
Collaborator

mathomp4 commented Jan 8, 2024

@climbfuji I've finally recovered from all the craziness that happened after the holiday break. Have you figured anything else out with this? Or still the same problems?

In some ways, I think focusing on rs_numtiles.x might be the best path forward. It is boring and the fact we have an issue there means if we can figure that out, then we maybe we figure out everything else.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@climbfuji I've finally recovered from all the craziness that happened after the holiday break. Have you figured anything else out with this? Or still the same problems?

In some ways, I think focusing on rs_numtiles.x might be the best path forward. It is boring and the fact we have an issue there means if we can figure that out, then we maybe we figure out everything else.

I have not made any progress on this. The only distant memory that came to my mind was that we had problems with the UFS depending on whether ESMF or MAPL (here is where my memory is faint) are compiled dynamically or statically, or with certain variants on or off. @AlexanderRichert-NOAA Do you recall what we had to change to avoid the segfault at the end of the model runs with ESMF/MAPL in the UFS?

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@mathomp4 I think we can finally merge this PR to prepare spack-stack for supporting geos. The actual changes to the spack stack templates and esmf/mapl configs will be in JCSDA/spack-stack#953, which is still being worked on (debugging shared ESMF build errors in CI ...).

@mathomp4
Copy link
Copy Markdown
Collaborator

@mathomp4 I think we can finally merge this PR to prepare spack-stack for supporting geos. The actual changes to the spack stack templates and esmf/mapl configs will be in JCSDA/spack-stack#953, which is still being worked on (debugging shared ESMF build errors in CI ...).

Sounds good as a first go. My guess is at some point there will be a lot more added to geos-gcm-env (Python packages say) .

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@mathomp4 I think we can finally merge this PR to prepare spack-stack for supporting geos. The actual changes to the spack stack templates and esmf/mapl configs will be in JCSDA/spack-stack#953, which is still being worked on (debugging shared ESMF build errors in CI ...).

Sounds good as a first go. My guess is at some point there will be a lot more added to geos-gcm-env (Python packages say) .

Thanks! At that point we should try to consolidate the common Python packages between geos-gcm-env, ewok-env and gmao-swell-env to simplify dependency trees.

@climbfuji
Copy link
Copy Markdown
Collaborator Author

I'll merge this after fixing the style errors that black is complaining about.

@climbfuji climbfuji merged commit b25f3ea into JCSDA:jcsda_emc_spack_stack Jan 17, 2024
@climbfuji climbfuji deleted the feature/geos_gcm_dependencies branch January 17, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

INFRA JEDI Infrastructure

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Additional packages requested for building NASA GEOS model

5 participants