Installation
Kokkos is avaiable on a GitHub repository: github.com/kokkos/kokkos.
1. Via CMake
To build Kokkos with CMake, you can use the following commands:
NOTE:
cmake -DKokkos_<BACKEND>=ON
Where <BACKEND>
is one of the following:
Backend | Description |
---|---|
SERIAL |
Enables serial execution backend |
OPENMP |
Enables OpenMP backend |
CUDA |
Enables CUDA backend |
HIP |
Enables HIP backend |
SYCL |
Enables SYCL backend |
THREADS |
Enables POSIX threads backend |
2. Via Spack
Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. To install Kokkos with Spack, you can use the following commands:
spack install kokkos
Some variants are available for Kokkos, you can use the following command to see the full list of variants:
spack info kokkos
On
|