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

debugging GCHP #482

Open
kaysuselj opened this issue Mar 13, 2025 · 2 comments
Open

debugging GCHP #482

kaysuselj opened this issue Mar 13, 2025 · 2 comments
Assignees
Labels
category: Debug Help Request for help debugging GCHP topic: Runtime Related to runtime issues (e.g. simulation stops with error)

Comments

@kaysuselj
Copy link

Your name

kay suselj

Your affiliation

JPL

Please provide a clear and concise description of your question or discussion topic.

I am trying to use the gdb debugger on Pleiades to debug GCHP, specifically to set a breakpoint and halt execution at a specific line in the code. However, I have not been successful so far.

I compile the code using the -DCMAKE_BUILD_TYPE=Debug option (with cmake), but when I set a breakpoint in gdb, the program crashes upon execution. Is there an additional compilation flag or debugging option that I need to enable?

Additionally, I am unable to run GCHP on a single CPU, which would be helpful for debugging. Any suggestions on how to achieve this would be greatly appreciated.

@kaysuselj kaysuselj added the category: Question Further information is requested label Mar 13, 2025
@yantosca yantosca added category: Debug Help Request for help debugging GCHP topic: Runtime Related to runtime issues (e.g. simulation stops with error) and removed category: Question Further information is requested labels Mar 13, 2025
@lizziel
Copy link
Contributor

lizziel commented Mar 13, 2025

Hi @kaysuselj, we have not used GCHP with the gdb debugger before. @mathomp4, does GEOS work with gdb? If yes, do you build with certain settings?

@lizziel
Copy link
Contributor

lizziel commented Mar 14, 2025

To answer your question about single CPU, it is not possible to run GCHP with fewer than 6 cores. This is because each of the 6 cubed sphere faces must have at least one core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Debug Help Request for help debugging GCHP topic: Runtime Related to runtime issues (e.g. simulation stops with error)
Projects
None yet
Development

No branches or pull requests

3 participants