Using Polars cuDF after this course
This section is for your future reference. It explains how, after this course, you can use Polars with cuDF on your computer (provided you have suitable hardware) and on the Alliance supercomputers.
For this course however, we have already set everything up for you on a virtual cluster (see next section). So please do not run any of the following during the course.
On your computer
Requirements
To run cuDF on your computer, you need a supported OS and at least one supported GPU. If you don’t, you can use a cloud service or the Alliance supercomputers.
Installation
I suggest using uv to install packages on your computer.
If you have CUDA 12 on your machine, you can simply run:
uv init --bare # Initiate project
uv add polars[gpu]Currently, this is equivalent to installing cudf-polars-cu12.
If you have CUDA 13, install instead with:
uv init --bare
uv add cudf-polars-cu13The last version of RAPIDS cuDF to support CUDA 11 is cudf-polars-cu11==25.06.
On Alliance clusters
The bad news is that RAPIDS is notoriously hard to install on some systems and that includes the Alliance supercomputers. Our admins are working on trying to add the various libraries to our wheel-house. If they succeed, using them on the clusters will be easy.
In the meantime, you can use the RAPIDS packages via an Apptainer image.