Installation#

Requirements#

cuspa requires Python 3.12 or newer, a compatible NVIDIA GPU and driver, a CUDA 12 or CUDA 13 runtime, and CuPy or CUDA-enabled PyTorch. Install the CuPy or PyTorch package matching your CUDA environment separately. Aggregation and I/O adapters currently require CuPy.

Build from source#

The cuspa distribution is the source distribution. Installing it compiles cuspa for the GPU detected on the build machine, which requires a matching CUDA toolkit that supports the target GPU and a C++17 compiler.

[uv] pip install cuspa

The optional adapters are extras here too:

[uv] pip install "cuspa[geoarrow]"
[uv] pip install "cuspa[geopandas]"
[uv] pip install "cuspa[spatialdata]"

Development install#

[uv] pip install -e ".[test]"