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

Printing quantities for debugging #102

Open
jeff-cohere opened this issue Jan 12, 2023 · 2 comments
Open

Printing quantities for debugging #102

jeff-cohere opened this issue Jan 12, 2023 · 2 comments

Comments

@jeff-cohere
Copy link
Collaborator

@kaizhangpnl mentioned at our monthly meeting today the importance of printing out diagnostic quantities for helping us understand problems we encounter. We haven't really discussed how to do this yet. I have some ideas about how we might do this in a GPU environment. If anyone else is interested in this topic, please add your thoughts to this issue.

@kaizhangpnl, maybe we should schedule a meeting to discuss this. I can put together some simple examples of how we might support "debugging prints", and you can see whether you think they are sufficient.

@kaizhangpnl
Copy link

Hi @jeff-cohere, sorry for the delay. Thank you for taking care of this request. It would be nice to know how C++ in MAMXX handles debugging prints. This issue is perhaps even more important for initialization routines, where we often print out information about global and local tracers indices, aerosols properties, input files, and etc. If it's as simple as Fortran write, we probably could just follow the original code. Otherwise, it's better have to some examples available for the modelers to follow. What do you think? I'd be happy to have a further discussion with you if needed. Thanks!

@jeff-cohere
Copy link
Collaborator Author

Hey Kai. Maybe we should chat a bit about specifics. With the introduction of GPUs, certain styles of printing debugging output become less convenient (though they may still be possible). If we can agree on a handful of ways to print quantities, I think it would be easy to make such a capability available in C++.

@jeff-cohere jeff-cohere removed their assignment Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants