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

fv_grid_tools MAPL_SHMEM #40

Open
wmputman opened this issue Mar 26, 2021 · 7 comments
Open

fv_grid_tools MAPL_SHMEM #40

wmputman opened this issue Mar 26, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@wmputman
Copy link

For DYAMONDv2 I had to update fv_grid_tools to use SHMEM, unfortunately I seem to have broken it for non SHMEM runs.

https://github.com/GEOS-ESM/GFDL_atmos_cubed_sphere/blob/feature/wmputman/DevDYAMONDv2_Merge03nhGF2020/tools/fv_grid_tools.F90

@tclune tclune added the bug Something isn't working label Mar 29, 2021
@tclune
Copy link

tclune commented Mar 29, 2021

Took a quick look at that link just now. Other than some print statements and some USE statements, it does not look like that file actually exercises any SHMEM functionality. Is this the broken version?

@wmputman
Copy link
Author

Look in the 'create_grid' routine, you'll see the allocates

@tclune
Copy link

tclune commented Mar 29, 2021

Ah. I had though SHMEM was in all the procedure names. sorry. Looking

@atrayano
Copy link

@wmputman I'll take a look and try to fix it after lunch

@atrayano
Copy link

@wmputman I cannot see anything obviously wrong with the file tools/fv_grid_tools.F90. The allocations (and deallocations) are done correctly for both Shmem and non-shmem cases. The code though is somewhat different on the branch you pointed us to, compared, let say to feature/wputman/dyamond_v2. For example, this branch calls create_grid, the other does not and instead inlines most of it, but even these lines show some differences (like one does not call get_symmetry)

The shmem related changes are easy to implement (allocation/deallocation of 3 global arrays, and some extra care of who is writing to these), and I prefer to start from a known "good" version, and implement them on top. Could you point us to a "good" starting branch (for this file only)?

@wmputman
Copy link
Author

I suggest we start from: feature/wmputman/DevDYAMONDv2_Merge03nhGF2020

@atrayano
Copy link

@wmputman this is the branch that already has the shmem logic. I am looking at the version of tools/fv_grid_tools.F90 prior to the shmem changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants