Installation#

PtyRAD package is available on both PyPI and conda-forge, while the source codes are hosted on GitHub with additional demo params files and demo scripts.

Platform and hardware compatibility#

PtyRAD uses PyTorch as the computation backend, which supports a wide range of machines as shown below.

Assuming you have created and activated a fresh Python environment for PtyRAD, click on the corresponding to jump to your options:

Windows

macOS

Linux

CPU

NVIDIA GPU

n/a

AMD GPU

n/a

Apple GPU

n/a

n/a

Installation options#

Windows and Linux system with a CUDA-supported GPU (NVidia)

pip install ptyrad
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 --force-reinstall
conda install ptyrad pytorch-gpu -c conda-forge

Linux with an ROCm-supported GPU (AMD)

Important

PtyRAD is explictly tested on Windows and Linux with NVidia GPUs and macOS with an Apple Silicon GPU. If you’re using AMD GPUs on Linux, some functionality may not work as expected. Please report your issues here.

pip install ptyrad
pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm6.3 --force-reinstall

conda-forge/pytorch team is still working on making compatible PyTorch build with ROCm (AMD) GPUs. It may or may not happen, please use pip for now, or follow progress here.

Windows / Linux without a GPU

pip install ptyrad
conda install ptyrad -c conda-forge

MacOS with or without Apple Silicon GPU

pip install ptyrad
conda install ptyrad -c conda-forge