Skip to content

Build Obtaining Cabana

Sam Reeve edited this page May 17, 2023 · 1 revision

Obtaining Kokkos

Kokkos is the only required dependency for Cabana.

Many systems will already have Kokkos available. If your system has your desired configuration available you are able to skip this step.

To clone the the latest version of Kokkos into a new directory which we will refer to as ./kokkos (you may find it useful to add the full path as a variable, $KOKKOS_SRC_DIR):

   git clone https://github.com/kokkos/kokkos.git

Most head versions of Kokkos should work, but the current minimum supported version is 3.2 (note that versions prior to 3.0 did not offer CMake builds). You can switch to a specific release (for example, 3.4.01) with:

   git pull origin
   git checkout 3.4.01

Obtaining Cabana

The first step to obtaining Cabana is cloning the master branch (or release tag) of the library into a directory we will refer to as ./Cabana (you may find it useful to add the full path as a variable, $CABANA_SRC_DIR):

   git clone https://github.com/ECP-copa/Cabana.git

You can switch to a specific release (for example, 0.4.0) with:

   git pull origin
   git checkout 0.4.0

Spack

A spack package for Cabana is also available: https://spack.readthedocs.io/en/latest/package_list.html#cabana

Clone this wiki locally