Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the source package directory.
    cd /path/to/KOKKOS
  3. Decompress the installation package.
    tar xvf 3.5.00.tar.gz
  4. Go to the directory generated after decompression.
    cd kokkos-3.5.00
  5. Create a build directory.
    mkdir build && cd build
  6. Create a build file.
    cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/kokkos/install/KOKKOS -DKokkos_ARCH_HSW=On -DKokkos_ENABLE_TESTS=On
  7. Modify the build file.
    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
  8. Perform the compilation and installation.
    make -j
    make install