Installation of TurboRVB
The followings are very simple tutorials for installing TurboRVB. The details of the installation options are written in each GitHub repository.
If you have any problem on the installation, please visit TurboRVB Discussions and please post your problem.
Prerequisites
Before installing the packages, ensure you have the following prerequisites:
Git (for downloading source code)
CMake (version 3.20.0 or higher)
C/C++ compiler (gcc, g++, or Intel compiler)
Fortran compiler (gfortran, ifort, or Intel oneAPI)
OpenMP (for parallel computing support)
BLAS/LAPACK libraries (for linear algebra operations)
MPI (for parallel execution, optional)
CUDA Toolkit (for GPU support, optional)
On macOS, you can install some of these prerequisites using Homebrew:
% brew install cmake pkg-config openblas
% brew install open-mpi # Optional, for MPI support
% brew install cuda # Optional, for GPU support
On Ubuntu/Debian:
% sudo apt-get update
% sudo apt-get install cmake pkg-config libopenblas-dev
% sudo apt-get install libopenmpi-dev # Optional, for MPI support
% sudo apt-get install nvidia-cuda-toolkit # Optional, for GPU support
TurboRVB installation
Please download the source codes from the GitHub repository.
% cd ~
% mkdir applications
% cd applications
% git clone https://github.com/sissaschool/turborvb.git
% cd ~/applications/turborvb
Compile TurboRVB
% cd ~/applications/turborvb
% cmake -S . -B build
% cd build
% make -j 4
The following CMake options are available to customize your TurboRVB build:
Option |
Description |
|---|---|
|
Compile serial version (default: ON) |
|
Compile parallel version (default: ON) |
|
Turn on optimization (default: ON) |
|
Turn on debug mode (default: OFF) |
|
Turn on internal time counter (default: OFF) |
|
Compile DFT code (default: ON) |
|
Compile QMC code (default: ON) |
|
Compile module test tools (default: ON) |
|
Compile auxiliary tools (default: ON) |
|
Compile GPU version (default: ON) |
|
Enable Link Time Optimization (default: OFF) |
|
Enable speed tests targets (default: OFF) |
|
Produce static packaging (default: OFF) |
|
Produce more detailed config output (default: OFF) |
|
Turn on Nvidia NVTX ranges (default: OFF) |
For example, to disable GPU support and enable debug mode:
% cmake -S . -B build -DEXT_GPU=OFF -DEXT_DEBUG=ON
Test TurboRVB
% ctest
Note
If some tests fail, you can see detailed output by running:
% ctest --rerun-failed --output-on-failure
This will show the full output of the failed tests, which can help diagnose the issue.
Copy the compiled binaries to bin/ directory
% cd ~/applications/turborvb
% cp build/*.x bin/
Please add a PATH to the turborvb/bin directory to your environment
% # For bash users
% echo PATH=$HOME/applications/turborvb/bin:'$PATH' >> ~/.bashrc
% source ~/.bashrc
% # For zsh users
% echo PATH=$HOME/applications/turborvb/bin:'$PATH' >> ~/.zshrc
% source ~/.zshrc
Check if it works
% which turborvb-serial.x
If the installation was successful, you should see the path to the executable:
/home/username/applications/turborvb/bin/turborvb-serial.x
Troubleshooting
Common issues and solutions:
CMake not found
If you get an error about CMake not being found, install it using your package manager:
% # For Ubuntu/Debian % sudo apt-get install cmake % # For macOS with Homebrew % brew install cmake
Compilation errors
If you encounter compilation errors:
Ensure you have the required compiler installed
Check that all dependencies are satisfied
Try cleaning the build directory and rebuilding:
% cd ~/applications/turborvb % rm -rf build % cmake -S . -B build % cd build % make -j 4