Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the source package directory.
cd /path/to/KOKKOS
- Decompress the installation package.
tar xvf 3.5.00.tar.gz
- Go to the directory generated after decompression.
cd kokkos-3.5.00
- Create a build directory.
mkdir build && cd build
- Create a build file.
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/kokkos/install/KOKKOS -DKokkos_ARCH_HSW=On -DKokkos_ENABLE_TESTS=On
- 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
- Perform the compilation and installation.
make -j make install
Parent topic: Kokkos 3.5.00 Porting Guide (Kylin V10)