Skip to content

GPU acceleration

Warning

GPU acceleration is a new feature and still in active development. On Linux it works well with both NVIDIA and AMD GPUs, and on Windows AMD GPUs should work and NVIDIA GPUs possibly do, but it has had many issues there. So far it has only been tested by its developer. If you encounter any difficulties or errors, please open an issue with your operating system and GPU model.

AUSAXS runs on the CPU by default to keep the package size small. To use a GPU, you need to download and install a separate ~300 MB AUSAXS GPU driver, which links AUSAXS to your graphics card. The driver supports NVIDIA and AMD GPUs on Linux (x86-64) and Windows (x86-64).

Is your platform or GPU not supported?

macOS, ARM systems and Intel GPUs are not supported yet, but AUSAXS still runs on the CPU on these systems. Adding support is currently a low priority. If you would like GPU acceleration on one of them, please open an issue with your operating system, CPU architecture and GPU model, or 👍 an existing one. Requests from actual users are what moves a platform up the list!

Installing the driver

Run:

ausaxs gpu install
This downloads the latest driver for your platform from the AUSAXS-GPU releases, lists the GPUs it finds, and, if there are several, asks you which one to use. Once a GPU is chosen, every AUSAXS tool uses it by default. Run the command again to choose a different GPU (without redownloading).

To skip the question, name the GPU with --device, either by its identifier as listed, or just by its API, e.g. --device cuda for the first CUDA GPU.

Installing from a downloaded file

If the machine has no internet access, or you want a specific version, download the driver yourself from the AUSAXS-GPU releases:

Platform File
Linux (x86-64) ausaxs-gpu-linux-x64.zip
Windows (x86-64) ausaxs-gpu-windows-x64.zip
macOS (Apple silicon) Still a work in progress, sorry!

Then install it from the file:

ausaxs gpu install --from <path to zip file>
--from also accepts a URL, and replaces any driver already installed. Add --offline to make sure no network requests are made.

To check, disable or remove the driver later, see managing the GPU driver. If the driver does not find your GPU, see the troubleshooting page.