Installation¶
Install Polarism with Python 3.12 or newer. The base package runs on a CPU; CUDA support is optional.
Install the package¶
To pin the documented release, use python -m pip install "polarism==0.9.2".
Add CUDA support¶
Install the extra that matches your CUDA environment:
Use polarism[cuda13] for CUDA 13. Use CUDA 12 for V100 or Volta hardware. CuPy must match the NVIDIA driver and CUDA toolkit. Polarism compiles some kernels at runtime, so CUDA headers must be available. If a run reports Failed to find CUDA headers, load the toolkit or install the matching CuPy toolkit extra, such as cupy-cuda12x[ctk].
Check whether CuPy can reach a CUDA device. The command prints True when one is available:
Set cfg.compute_engine.use_gpu = True for a GPU run. See Running on GPUs for solver and precision choices.
Install a development checkout¶
From the repository root:
This installs the test and documentation dependencies. See Contributing for the development workflow.