Hi everyone over here on the GPU fork
I was just take a look at installing this and running a few models.
Is there any chance of a few pointers for getting up and started with the install on a NVIDIA card.
I checked to see if the install.rst has any hints or the CI has any hints but I couldn't see any OMP_TARGET_OFFLOAD specific instructions.
so far I have this but should I add some args to the cmake step?
ubuntu 22.04 install instructions for Nvidia GPU
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y cmake
sudo apt-get install -y build-essential
sudo apt-get install -y libhdf5-serial-dev
sudo apt-get install -y gcc
sudo apt-get install -y llvm
# python3 3.10.12 is installed on ubuntu 22.04 by default but missing pip
sudo apt install python3-pip
# solves omp.h' file not found error
sudo apt-get install -y libomp-dev
# assuming graphics drivers are installed so commented out
# sudo apt update
# sudo apt upgrade
# sudo apt install nvidia-driver-535
# sudo apt install ubuntu-drivers-common
# reboot now
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
. ~/.bashrc
nvcc -V
git clone https://github.com/exasmr/openmc.git
cd openmc
mkdir build
cd build
# perhaps need to tell cmake to use llvm compiler
cmake -Doptimize=on -Dcuda_thrust_sort=on CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ ..
make -j
cd ..
pip3 install .
# download nuclear data
wget https://anl.box.com/shared/static/vht6ub1q27hujkqpz1k0s48lrv44op0v.tgz
tar -xzvf vht6ub1q27hujkqpz1k0s48lrv44op0v.tgz
export OPENMC_CROSS_SECTIONS=${PWD}/nndc_hdf5/cross_sections.xml
export OMP_TARGET_OFFLOAD=MANDATORY
Hi everyone over here on the GPU fork
I was just take a look at installing this and running a few models.
Is there any chance of a few pointers for getting up and started with the install on a NVIDIA card.
I checked to see if the install.rst has any hints or the CI has any hints but I couldn't see any
OMP_TARGET_OFFLOADspecific instructions.so far I have this but should I add some args to the cmake step?