From c299b773c8c36f6f668e10c85724b4f5567cc80b Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 15 Dec 2023 16:25:36 -0700 Subject: [PATCH] . --- .github/workflows/linux.yaml | 6 +++--- README.md | 7 ++++++- perf_tests/test_sendrecv.cpp | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index dc58a750..982f06ca 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -2,7 +2,7 @@ name: Linux run-name: Linux on: [push] jobs: - Kokkos-040200-Serial-Release: + Kokkos-040200-Threads-Debug: env: KOKKOS_SRC: ${{ github.workspace }}/_deps/kokkos KOKKOS_BUILD: ${{ github.workspace }}/_deps/kokkos-build @@ -28,11 +28,11 @@ jobs: run: | git clone https://github.com/kokkos/kokkos.git "$KOKKOS_SRC" cd "$KOKKOS_SRC" && git checkout 4.2.00 - cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" -DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_THREADS=ON -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_COMPILER=mpicxx + cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" -DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=Debug -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_THREADS=ON -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_COMPILER=mpicxx cmake --build "$KOKKOS_BUILD" --parallel $(nproc) -t install - name: Build KokkosComm run: | - cmake -S "$COMM_SRC" -B "$COMM_BUILD" -DKokkos_DIR="$KOKKOS_INSTALL/lib/cmake/Kokkos" -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_BUILD_TYPE=RelWithDebInfo + cmake -S "$COMM_SRC" -B "$COMM_BUILD" -DKokkos_DIR="$KOKKOS_INSTALL/lib/cmake/Kokkos" -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_BUILD_TYPE=Debug cmake --build "$COMM_BUILD" --parallel "$(nproc)" - name: Test KokkosComm run: | diff --git a/README.md b/README.md index 30b95aa7..70bf0b81 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # kokkos-comm MPI Wrapper for [Kokkos](https://github.com/kokkos/kokkos). - +``` +mkdir build && cd build +cmake .. +make +ctest +``` ## Considerations diff --git a/perf_tests/test_sendrecv.cpp b/perf_tests/test_sendrecv.cpp index 375e705c..a58ce5b7 100644 --- a/perf_tests/test_sendrecv.cpp +++ b/perf_tests/test_sendrecv.cpp @@ -21,4 +21,4 @@ void mpi_benchmark(benchmark::State &state) { } } -BENCHMARK(mpi_benchmark)->UseManualTime(); \ No newline at end of file +BENCHMARK(mpi_benchmark)->UseManualTime()->Unit(benchmark::kMillisecond);; \ No newline at end of file