Install the pre-compiled binary packages based on your CUDA version. Note that these packages support compute capability 7.0 and later (Volta, e.g., Tesla V100, RTX 20 series, and later).
First, check your CUDA version:
nvcc --version
Then, install the corresponding package and the highly recommended cutensor package:
| CUDA Version | gpu4pyscf package | cutensor package |
|---|
| 11.x | pip3 install gpu4pyscf-cuda11x | pip3 install cutensor-cu11 |
| 12.x | pip3 install gpu4pyscf-cuda12x | pip3 install cutensor-cu12 |
| 13.x | pip3 install gpu4pyscf-cuda13x | pip3 install cutensor-cu13 |
Important: CuPy and cuTENSOR versions are strongly interdependent. To avoid functionality failures, use these recommended combinations:
- CuPy 13.3.0 + cuTENSOR 2.0.2
- CuPy 13.4.1 + cuTENSOR 2.2.0
To ensure compatibility and reproducibility, it is recommended to create a dedicated environment using the provided requirements file:
pip3 install --no-cache-dir -r requirements.txt
pip3 install gpu4pyscf-cuda12x
pip3 install cutensor-cu12