Coder Social home page Coder Social logo

Comments (11)

kaiyuan-cheng avatar kaiyuan-cheng commented on July 26, 2024 1

@StevePny It turns out that the default stack size, 8 MB, is insufficient to hold the large one-dimension variable, lbms. The solution is to set an unlimited stack size.

from shield_physics.

lharris4 avatar lharris4 commented on July 26, 2024 1

from shield_physics.

lharris4 avatar lharris4 commented on July 26, 2024 1

from shield_physics.

laurenchilutti avatar laurenchilutti commented on July 26, 2024

@StevePny What test are you running that results in this seg fault failure? Is it one of the tests in the CI directory?

from shield_physics.

laurenchilutti avatar laurenchilutti commented on July 26, 2024

@StevePny To expand upon my previous comment: Is it one of the tests in the SHiELD_build repository CI directory?

from shield_physics.

StevePny avatar StevePny commented on July 26, 2024

@laurenchilutti
The latter case is the regional_Laura case distributed with the SHiELD-in-a-box:
https://www.gfdl.noaa.gov/shield/shield-in-a-box/
https://zenodo.org/record/5090124/files/regional_Laura.zip

I was able to install SHiELD and run these example cases (regional_Laura and global_nest_Laura) prior to the 202204 release.

from shield_physics.

kaiyuan-cheng avatar kaiyuan-cheng commented on July 26, 2024

@StevePny
I have tested the latest SHiELD code with the regional Laura case. When I built SHiELD natively on an NOAA HPC, the Laura case works fine. However, it does not work with the containerized SHiELD, which is very strange.

from shield_physics.

kaiyuan-cheng avatar kaiyuan-cheng commented on July 26, 2024

Looks like it is the NCEP library causing the crash. Segmentation fault occurs at

call getgb(lugb,lugi,kdata,lskip,jpds,jgds,ndata,lskip,

However, I still don't understand why it is the case. Before this line, another NCEP library, getgbh(), works just fine. Also, the same compiler flags and arguments worked previously.

from shield_physics.

StevePny avatar StevePny commented on July 26, 2024

@kaiyuan-cheng just checking in - has any progress been made on clearing up this issue, or should we continue with the pre-202204 version?

from shield_physics.

kaiyuan-cheng avatar kaiyuan-cheng commented on July 26, 2024

from shield_physics.

StevePny avatar StevePny commented on July 26, 2024

To provide a clarifying detail -
The docker container does not inherit the system stack limit by default. The ulimit can be set on the command line when running the docker container, but 'unlimited' is not a permitted option. In order to specify an unlimited stack size in the docker container, one can add this option:

--ulimit stack=-1

With this setting I can run the regional_Laura_test case on an AWS c6g.8xlarge ec2 instance.

Note - to be safe, I also set the stack size in the ec2 instance with:
ulimit -s unlimited

from shield_physics.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.