Build from Source

Create the Conda Environment

conda env create -f environment.yml
conda activate realsim_py

Install the official PyTorch and ensure it is compatible with your GPU driver and CUDA toolkit.

Build RealSim (CMake)

System packages (Ubuntu/Debian)

sudo apt-get update
sudo apt-get install -y \
    build-essential cmake pkg-config \
    libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \
    libxext-dev libxrender-dev libxfixes-dev \
    libgl1-mesa-dev libglu1-mesa-dev libegl1-mesa-dev \
    libwayland-dev libxkbcommon-dev \
    libglm-dev libeigen3-dev

Third-party libraries

  • oneTBB:

  • Boost:

The build process may take 10-30 minutes, depending on your system. We are only building the necessary components (system, filesystem, thread, chrono, date_time, regex) to speed up the build process.

  • cuBLAS:

cuBLAS is typically already installed if you have previously installed the CUDA toolkit. We have tested on CUDA 12.8.

Add NVIDIA GPG Key and Library:

Update Package List and Install NVIDIA HPC SDK:

  • METIS:

Build and install GKlib (METIS dependency) and METIS:

Verify installation:

You should see both library files listed.

Compile RealSim

Install the Python Package

Ensure you are in the repository root:

Quick Verification

Native binaries:

Python bindings:

Last updated