Skip to content

Pr/552 fix #557

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

Merged
merged 4 commits into from
Sep 28, 2021
Merged

Pr/552 fix #557

merged 4 commits into from
Sep 28, 2021

Conversation

kiliakis
Copy link
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 makepath: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 <[email protected]>
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