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