From aa846d6674eaf2f1fe8f0a7819772b5084ad5ef2 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 7 Mar 2024 23:05:55 +0900 Subject: [PATCH] minor fix build commands --- README.md | 2 +- docs/intro/building.rst | 18 +++++++++--------- docs/intro/quick_start.rst | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 48c7a1de..0039f977 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ target_link_libraries(hello-kokkos-fft PUBLIC Kokkos::kokkos KokkosFFT::fft) For compilation, we basically rely on the CMake options for Kokkos. For example, the compile options for A100 GPU is as follows. ``` -cmake -B build +cmake -B build \ -DCMAKE_CXX_COMPILER=g++ \ -DCMAKE_BUILD_TYPE=Release \ -DKokkos_ENABLE_CUDA=ON \ diff --git a/docs/intro/building.rst b/docs/intro/building.rst index 4ec8b66c..87dcc61a 100644 --- a/docs/intro/building.rst +++ b/docs/intro/building.rst @@ -28,12 +28,12 @@ Let's assume Kokkos is installed under ```` with ``OpenMP`` back export KOKKOSFFT_INSTALL_PREFIX= - mkdir build_KokkosFFT && cd build_KokkosFFT - cmake -DCMAKE_CXX_COMPILER= \ + cmake -B build_KokkosFFT \ + -DCMAKE_CXX_COMPILER= \ -DCMAKE_PREFIX_PATH= \ - -DCMAKE_INSTALL_PREFIX=${KOKKOSFFT_INSTALL_PREFIX} .. - cmake --build . -j 8 - cmake --install . + -DCMAKE_INSTALL_PREFIX=${KOKKOSFFT_INSTALL_PREFIX} + cmake --build build_KokkosFFT -j 8 + cmake --install build_KokkosFFT Here is an example to use KokkosFFT in the following CMake project. @@ -62,10 +62,10 @@ The code can be built as .. code-block:: bash - mkdir build && cd build - cmake -DCMAKE_CXX_COMPILER= \ - -DCMAKE_PREFIX_PATH=";" .. - cmake --build . -j 8 + cmake -B build \ + -DCMAKE_CXX_COMPILER= \ + -DCMAKE_PREFIX_PATH=";" + cmake --build build -j 8 CMake options ------------- diff --git a/docs/intro/quick_start.rst b/docs/intro/quick_start.rst index 1f59e7ed..1381392a 100644 --- a/docs/intro/quick_start.rst +++ b/docs/intro/quick_start.rst @@ -63,12 +63,12 @@ For compilation, we basically rely on the CMake options for Kokkos. For example, .. code-block:: bash - mkdir build && cd build - cmake -DCMAKE_CXX_COMPILER=g++ \ + cmake -B build \ + -DCMAKE_CXX_COMPILER=g++ \ -DCMAKE_BUILD_TYPE=Release \ -DKokkos_ENABLE_CUDA=ON \ - -DKokkos_ARCH_AMPERE80=ON .. - cmake --build . -j 8 + -DKokkos_ARCH_AMPERE80=ON + cmake --build build -j 8 This way, all the functionalities are executed on A100 GPUs.