Skip to content

Python port of miniWeather #1

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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

Conversation

mhoemmen
Copy link

@mhoemmen mhoemmen commented Mar 5, 2025

The port is sequential and uses index range loops. It would make sense to compare performance against

  • NumPy "vectorized" operations,
  • the CUDA-enabled version of those, and
  • any other Python programming models of interest.

mhoemmen added 30 commits March 3, 2025 16:20
This is NOT COMPLETE YET.

It's a port of cpp/miniWeather_serial.cpp.
Remove some differences (state_tmp allocation and initialization)
between Python and C.  It didn't change the Python output at all.
Extents of flux in Python differed from those in C.
I changed the Python flux allocation to work like C,
but that didn't help the mass balance.
PNetCDF wants an MPI_Info that is not MPI_INFO_NULL.

There are other issues with C output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant