Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fix build commands #76

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading