Skip to content

Add hillshade benchmarking for numpy, cupy and rtxpy #625

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 1 commit into from
Jan 7, 2022

Conversation

ianthomas23
Copy link
Contributor

This PR adds a benchmark for hillshade for numpy arrays (calculated on CPU) and cupy arrays (calculated on GPU). Also the rtxpy version of hillshade that calculates full shadows, so the timings of this are not directly comparable with the two other implementations as it is performing many more calculations.

hillshade_benchmark

Timings on my dev machine (Quadro T1000 graphics card) show that GPU algorithm is ~1.5 orders of magnitude faster than CPU algorithm for rasters of dimension ~1000 and over 2 orders of magnitude faster for dimension ~3000.

@ianthomas23 ianthomas23 merged commit 3402d56 into makepath:master Jan 7, 2022
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