Skip to content

4.2.0

Choose a tag to compare

@DavidMChan DavidMChan released this 28 Nov 23:55
· 1 commit to main since this release
6b2c4b1

4.2.0 makes pip install tsnecuda work on its own, on Linux and Windows. The wheels on PyPI have FAISS built in and get the CUDA libraries from NVIDIA's pip packages, so they no longer need conda or LD_LIBRARY_PATH.

New

  • Self-contained pip wheels (#153). pip install tsnecuda installs a wheel for Linux (x86_64, glibc 2.28 or newer) or Windows (x86_64) that works with any Python 3. FAISS 1.14.3 and OpenBLAS are linked in, and pip installs cuBLAS, cuFFT and cuSPARSE from NVIDIA's CUDA 13 packages (nvidia-cublas, nvidia-cufft, nvidia-cusparse, about 1 GB). PyTorch's CUDA 13 wheels use the same packages, so the two share them in one environment.
  • The wheels need an NVIDIA GPU from the Turing generation or newer (compute capability 7.5 and up) and a driver from release 580 or newer. tsne-cuda's kernels have native code for sm_75 to sm_120 and PTX for compute_120. To keep the wheels under PyPI's size limit, FAISS has native code for one GPU per architecture family (sm_75, sm_80, sm_90, sm_100, sm_120), plus the same PTX. RTX 30 and 40 series and other sm_86 and sm_89 GPUs run FAISS's sm_80 code, which made no measurable difference on an RTX 4090.

Fixes

  • When libtsnecuda can't load, the error now names the library that is missing (for example libcublas.so.13). Before, it was an AttributeError naming libtsnecuda.so.
  • Source builds no longer need cuSOLVER's headers or Python's development files; neither was used.

Other ways to install
conda install -c conda-forge tsnecuda has CUDA 12.9 and 13 builds for Linux and Windows, for older drivers. GPUs older than Turing (Maxwell, Pascal and Volta) can use the cu118 wheel from 4.1.0 with a matching FAISS from conda-forge.

Validation

  • The Linux wheel passes tsnecuda.test() and the test suite in 21 clean environments on three GPUs: an RTX 4090 (sm_89, driver 580.82), a Quadro RTX 6000 (sm_75, driver 595.91) and an RTX A4000 (sm_86, driver 580.178). These cover Python 3.9 to 3.14 on Debian, Rocky Linux 8 (glibc 2.28), and Ubuntu 22.04 and 24.04, with no conda and no LD_LIBRARY_PATH.
  • It works in one environment with PyTorch 2.14.1+cu130, importing either one first, and the two share the same nvidia-cublas.
  • On the RTX 4090 it runs as fast as the conda-forge 4.1.1 build at 100,000 and 500,000 points, and faster with the CPU nearest-neighbour search (k=1024: 2.5 s against 3.5 s).
  • The Windows wheel installs and loads on GitHub's Windows Server 2022 and 2025 runners with Python 3.9, 3.12 and 3.14. Those runners have no GPU, so I haven't run it on a GPU under Windows yet. Hopper and Blackwell support was checked from the compiled binaries, not on hardware.