Skip to content

Commit

Permalink
Merge pull request #76 from CExA-project/release-candidate-0.1.0
Browse files Browse the repository at this point in the history
minor fix build commands
  • Loading branch information
yasahi-hpc authored Mar 7, 2024
2 parents 8d5d57e + aa846d6 commit 18a0fe7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
18 changes: 9 additions & 9 deletions docs/intro/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Let's assume Kokkos is installed under ``<path/to/kokkos>`` with ``OpenMP`` back
export KOKKOSFFT_INSTALL_PREFIX=<path/to/kokkos-fft>
mkdir build_KokkosFFT && cd build_KokkosFFT
cmake -DCMAKE_CXX_COMPILER=<your c++ compiler> \
cmake -B build_KokkosFFT \
-DCMAKE_CXX_COMPILER=<your c++ compiler> \
-DCMAKE_PREFIX_PATH=<path/to/kokkos> \
-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.

Expand Down Expand Up @@ -62,10 +62,10 @@ The code can be built as

.. code-block:: bash
mkdir build && cd build
cmake -DCMAKE_CXX_COMPILER=<your c++ compiler> \
-DCMAKE_PREFIX_PATH="<path/to/kokkos>;<path/to/kokkos-fft>" ..
cmake --build . -j 8
cmake -B build \
-DCMAKE_CXX_COMPILER=<your c++ compiler> \
-DCMAKE_PREFIX_PATH="<path/to/kokkos>;<path/to/kokkos-fft>"
cmake --build build -j 8
CMake options
-------------
Expand Down
8 changes: 4 additions & 4 deletions docs/intro/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 18a0fe7

Please sign in to comment.