Skip to content

Pr/552 fix#557

Merged
thuydotm merged 4 commits intoxarray-contrib:pr/552from
kiliakis:pr/552-fix
Sep 28, 2021
Merged

Pr/552 fix#557
thuydotm merged 4 commits intoxarray-contrib:pr/552from
kiliakis:pr/552-fix

Conversation

@kiliakis
Copy link
Copy Markdown
Contributor

Fixes an odd artifact in perlin noise output

Proposed Changes

  • use xrspatial.utils.cuda_args to configure block and grid sizes
  • use permutation method instead of arange + shuffle
  • cupy and numpy methods generate different outputs. Forcing them to generate the same output can be 4x-5x slower (perlin), to 7x-8x slower (gen_terrain)

@thuydotm thuydotm merged commit 0d75c85 into xarray-contrib:pr/552 Sep 28, 2021
thuydotm added a commit that referenced this pull request Sep 28, 2021
* adds fast_perline and fast_terrain modules

* fixes import

* Adds two new notebook examples

* updates readme, cupy and dask supported for perlin and terrain generation

* refactor

* add tests

* update test

* update tests

* added perlin tests

* terrain: dask case

* Pr/552 fix (#557)

* Fixes bug in perlin gpu

* uses cuda_args to configure block and grid size

* Using numpy for permutation makes the Cuy implementation 4-5x slower

* typo fix

* ensure numpy, dask, and cupy perlin return the same output

* ensure numpy, dask, and cupy generate_terrain return the same output

* flake8 fixes

* generate_terrain: correct resolution of output data array

* temporarily exclude benchmark notebooks

Co-authored-by: Konstantinos Iliakis <konstantinos.iliakis@cern.ch>
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.

2 participants