Skip to content

regolith-labs/ore-gpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake:

sudo apt install cmake

LLVM:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
sudo apt install libllvm-14-ocaml-dev libllvm14 llvm-14 llvm-14-dev llvm-14-doc llvm-14-examples llvm-14-runtime

CUDA:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get install cuda-12.2

Flex:

sudo apt-get install flex

Bison:

sudo apt-get install bison libbison-dev

zlib

sudo apt-get install zlib1g-dev libgtest-dev

Environment:

export CUDA_HOME=/usr/local/cuda
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH

Build:

cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ..

rNdN Modification

The rNdN submodule has been modified to support CUDA 12.0. To maintain this change across updates:

  1. Apply patch after submodule updates: git submodule update --init --recursive && git apply patches/rndn-cuda12.patch
  2. Or use our fork: git submodule set-url thirdparty/rNdN https://github.com/YOUR_USER/rNdN.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published