Skip to content

Instantly share code, notes, and snippets.

@aadith-warrier
Created June 15, 2025 14:55
Show Gist options
  • Select an option

  • Save aadith-warrier/176dcaabae1f8630f0a245f42875e214 to your computer and use it in GitHub Desktop.

Select an option

Save aadith-warrier/176dcaabae1f8630f0a245f42875e214 to your computer and use it in GitHub Desktop.
Install Minkowski Engine anywhere

Minkowski Engine Install for SLURM/HPC environments with no sudo access.

CUDA < 12.4 should work. 12.4+ works with some patches check this issue.

module load <cuda 11.8> 

export CUDA_HOME=<path to cuda 11.8>  # adjust this to your environment check by running 'module show <module_name>'
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH

nvcc --version #to verify

Install specific GCC version and openBLAS

conda install -c conda-forge gcc_linux-64=10.4.0 gxx_linux-64=10.4.0 openblas
export CC=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-gcc
export CXX=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++

Clone repo with patches from CiSong10

git clone https://github.com/CiSong10/MinkowskiEngine.git
cd MinkowskiEngine
git checkout cuda12-installation

Install Minkowski Engine. Use MAX_JOBS=1 to prevent OOM errors. Increase if you have more RAM.

MAX_JOBS=1 python setup.py install \ 
  --blas_include_dirs=$CONDA_PREFIX/include \
  --blas=openblas 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment