Last active
October 16, 2024 14:02
Install NiftyReg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p $HOME/git | |
cd $HOME/git | |
git clone https://github.com/KCL-BMEIS/niftyreg.git --depth 1 | |
cd niftyreg | |
mkdir build install | |
cd build | |
# This gave me trouble on a DGX | |
## If cmake is run just once, make may not work. Might be related to https://stackoverflow.com/q/47684410/3956024 | |
#cmake -DCMAKE_INSTALL_PREFIX:STRING=../install -DUSE_CUDA:BOOL=ON -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc-6 .. | |
#cmake -DCMAKE_INSTALL_PREFIX:STRING=../install -DUSE_CUDA:BOOL=ON -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc-6 .. | |
cmake -DCMAKE_INSTALL_PREFIX:STRING=../install .. | |
make -j$(nproc) | |
make install | |
# Add this to .bashrc or equivalent: | |
PATH="$HOME/git/niftyreg/install/bin:$PATH" | |
LD_LIBRARY_PATH="$HOME/git/niftyreg/install/lib/:$LD_LIBRARY_PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment