cd /path/to/KOKKOS
tar xvf 3.5.00.tar.gz
cd kokkos-3.5.00
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/kokkos/install/KOKKOS -DKokkos_ARCH_HSW=On -DKokkos_ENABLE_TESTS=On
cd .. sed -i "s/\-march=core\-avx2/\-march=armv8\-a/g" `grep -rl "\-march=core\-avx2" ./` sed -i "s/\-mtune=core\-avx2/\-mtune=tsv110/g" `grep -rl "\-mtune=core\-avx2" ./` cd build
make -j make install