Installing GANSU2

Requirements

  • Linux x86_64 or aarch64 (manylinux_2_28, glibc ≥ 2.28 — e.g. Ubuntu 20.04 or newer, RHEL 8 or newer). The aarch64 build covers Arm GPU servers such as NVIDIA Grace Hopper (GH200), Grace Blackwell (GB200) and DGX Spark (GB10); pip picks the right wheel automatically.
  • An NVIDIA GPU (Compute Capability 7.0 or 8.0+ on x86_64, 9.0+ on aarch64) with a driver compatible with the CUDA 12.x runtime (525.60.13 or newer; Blackwell GPUs need 570 or newer)
  • Python 3.8+

Install

GANSU2 ships as a small “thin” wheel on PyPI:

pip install gansu2

If PyPI is not reachable from your machine, the same wheel is attached to every release on the releases page and can be installed by URL.

The wheel itself is only a few MB. On first use, GANSU2 downloads the GPU shared library (libgansu2.so) and the gansu2 command-line tool from the same release and caches them under ~/.cache/gansu2/<version>/, each file verified against its published SHA-256.

Verify

python -c "import gansu2; print('gansu2 imported OK')"

The first time you run the gansu2 command (or a calculation from Python), the GPU library and CLI are fetched once — see the CLI guide and the Python API guide.

Using an offline shared library

To point at a specific libgansu2.so instead of fetching it (for example an offline copy), set GANSU2_LIB before importing:

export GANSU2_LIB=/path/to/libgansu2.so

Getting a free license key

Small calculations run with no license at all. Anything larger needs a free license key, which grants full, unlimited use (commercial use included). The key is a floating license — it is not tied to a machine, and one key runs one calculation at a time.

  1. Get an 8-character sign-up code from the tool bundled in the wheel (an unlicensed run that hits the size limit prints this command and the URL):

    gansu2-license -s
    
  2. Open the User Portal and create an account: enter the sign-up code in the registration form, then confirm your email address with the verification code sent to you.
  3. Log in to the portal. Your free license key is shown there; press Start to activate your Free License (this begins the 30-day period, which you can renew from the portal at any time).

  4. Register the key shown in the portal on this machine:

    gansu2-license -k <YOUR-KEY> -a
    

GANSU2 now runs without the size limit. See the Terms and Conditions and the Portal Account Terms of Service.

Behind an HTTP proxy

On machines that reach the internet only through a proxy (for example the compute nodes of many supercomputers), set the standard proxy variable. GANSU2 uses it both for the first-run download and for the license check:

export https_proxy=http://proxy.example.com:3128

HTTPS_PROXY, all_proxy and ALL_PROXY are read as well, and hosts listed in no_proxy are contacted directly. If the proxy cannot be reached, GANSU2 falls back to a direct connection. Many HPC systems already set https_proxy on their compute nodes, in which case nothing needs to be done. (The license check honors the proxy from version 2026.10.22.)


This site uses Just the Docs, a documentation theme for Jekyll.