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

hpx: cannot reorder on GPU w/o cuhpx #15

Open
nbren12 opened this issue Sep 16, 2024 · 0 comments
Open

hpx: cannot reorder on GPU w/o cuhpx #15

nbren12 opened this issue Sep 16, 2024 · 0 comments

Comments

@nbren12
Copy link
Collaborator

nbren12 commented Sep 16, 2024

Need to provide an alternative workflow. A current work around is to use bilinear regridder:

data_grid = earth2grid.healpix.Grid(level=level, pixel_order=earth2grid.healpix.HEALPIX_PAD_XY)
ring_grid = earth2grid.healpix.Grid(level=level, pixel_order=earth2grid.healpix.PixelOrder.RING)

regrid = data_grid.get_bilinear_regridder_to(ring_grid.lat, ring_grid.lon)
regrid.to(data)

output_data = regrid(data)

we could also plug in to the earth2grid.get_regridder method here:

def get_healpix_regridder(self, dest: "Grid"):

cc @akshaysubr

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

No branches or pull requests

1 participant