Add cudf, dask and dask-cudf Canvas.line benchmarks #1140
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds
cudf
,dask
anddask-cudf
benchmarks to the existingpandas
Canvas.line
benchmarks. Thecudf
anddask-cudf
benchmarks are only run if you have the required libraries installed, and in turn those libraries can only be installed if you have appropriate CUDA hardware available.Outline of process to install required libraries:
nvidia-smi
. The versions should be something like470.141.03
and11.5
.cuDF
package. This gives you aconda create
command to use. Note that this does not includedask-cudf
, so explicitly append it to theconda create
command if you wish to use it.conda
environment using this command. It can take quite a while to resolve dependencies and download and install the required packages.pip install -ve .[tests]
.DATASHADER_TEST_GPU=1 pytest datashader/tests
.benchmarks/README.md
.Note that the size of the benchmark problems is not sufficient to justify the use of
dask
and/orcudf
. They are not yet intended to fully benchmark the performance of the whole library but are instead intended to check that code changes do not have a detrimental effect on individual algorithm performance. This is important in the short term as there is work underway to simplify theNumba
code withinDatashader
so that it is easier to understand and maintain, but these simplifications will only be acceptable if they do not slow down the code.