The Compas Toolkit is a high-performance C++ library offering GPU-accelerated functions for use in quantitative MRI research. The toolkit offers fast simulations of various MRI sequences and k-space trajectories commonly used in qMRI studies. While the core of the toolkit is implemented using CUDA, the functionality is accessible from both C++ and Julia.
- Flexible API that can be composed in different ways.
- Highly tuned GPU kernels that provide high performance.
- Implemented using CUDA, optimized for Nvidia GPUs.
- Usable from Julia and C++.
Compilation requires the following software:
- CMake (version 3.10 or higher)
- NVIDIA CUDA Compiler (version 11.0 or higher)
- Julia (version 1.9 or later, only for Julia bindings)
To install the Compas Toolkit, follow these steps:
First, clone the GitHub repository:
$ git clone --recurse-submodules https://github.com/NLeSC-COMPAS/compas-toolkitNext, configure the CMake project inside a new build directory:
$ mkdir -p build
$ cd build
$ cmake -B. -DCOMPAS_USE_CUDA=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=80 ..After the configuration, build the toolkit by running:
$ make compas-toolkitThis generates a static library named libcompas-toolkit.a.
Please visit CompasToolkit.jl for details on how to use Compas Toolkit from Julia.