-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API Doc for Polars GPU Engine (#16753)
Modified the cudf API docs to add a page on cudf pandas detailing - 1) How to use? 2) How to learn more? 3) How to try on Google Colab? --------- Co-authored-by: Manas Singh <[email protected]> Co-authored-by: Lawrence Mitchell <[email protected]> Co-authored-by: Bradley Dice <[email protected]>
- Loading branch information
1 parent
1b5cb1a
commit b6a110e
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
cuDF-based GPU backend for Polars [Open Beta] | ||
============================================= | ||
|
||
cuDF supports an in-memory, GPU-accelerated execution engine for Python users of the Polars Lazy API. | ||
The engine supports most of the core expressions and data types as well as a growing set of more advanced dataframe manipulations | ||
and data file formats. When using the GPU engine, Polars will convert expressions into an optimized query plan and determine | ||
whether the plan is supported on the GPU. If it is not, the execution will transparently fall back to the standard Polars engine | ||
and run on the CPU. | ||
|
||
Benchmark | ||
--------- | ||
We reproduced the `Polars Decision Support (PDS) <https://github.com/pola-rs/polars-benchmark>`__ benchmark to compare Polars GPU engine with the default CPU settings across several dataset sizes. Here are the results: | ||
|
||
.. figure:: ../_static/pds_benchmark_polars.png | ||
:width: 600px | ||
|
||
|
||
|
||
You can see up to 13x speedup using the GPU backend on the compute-heavy PDS queries involving complex aggregation and join operations. Below are the speedups for the top performing queries: | ||
|
||
|
||
.. figure:: ../_static/compute_heavy_queries_polars.png | ||
:width: 1000px | ||
|
||
:emphasis:`PDS-H benchmark | GPU: NVIDIA H100 PCIe | CPU: Intel Xeon W9-3495X (Sapphire Rapids) | Storage: Local NVMe` | ||
|
||
You can reproduce the results by visiting the `Polars Decision Support (PDS) GitHub repository <https://github.com/pola-rs/polars-benchmark>`__. | ||
|
||
Learn More | ||
---------- | ||
|
||
The GPU backend for Polars is now available in Open Beta and the engine is undergoing rapid development. To learn more, visit the `GPU Support page <https://docs.pola.rs/user-guide/gpu-support/>`__ on the Polars website. | ||
|
||
Launch on Google Colab | ||
---------------------- | ||
|
||
.. figure:: ../_static/colab.png | ||
:width: 200px | ||
:target: https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/accelerated_data_processing_examples/polars_gpu_engine_demo.ipynb | ||
|
||
Take the cuDF backend for Polars for a test-drive in a free GPU-enabled notebook environment using your Google account by `launching on Colab <https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/accelerated_data_processing_examples/polars_gpu_engine_demo.ipynb>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,6 @@ other operations. | |
|
||
user_guide/index | ||
cudf_pandas/index | ||
cudf_polars/index | ||
libcudf_docs/index | ||
developer_guide/index |