Skip to content

Commit

Permalink
Merge pull request #222 from uliegecsm/papi-install
Browse files Browse the repository at this point in the history
papi(bug): use `kp_add_library` to ensure it is installed
  • Loading branch information
dalg24 authored Dec 4, 2023
2 parents c430ff7 + ce606e8 commit 6dae155
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-with-kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ jobs:
exit -1
esac
- name: Install CMake, OpenMPI and dtrace
- name: Install CMake, OpenMPI, PAPI and dtrace
run: |
apt --yes --no-install-recommends install \
cmake make \
libopenmpi-dev \
systemtap-sdt-dev
systemtap-sdt-dev \
libpapi-dev
- name: Compile and install Kokkos
working-directory: kokkos
run: |
Expand Down
3 changes: 2 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"CMAKE_CXX_STANDARD" : "17",
"KokkosTools_ENABLE_EXAMPLES" : "ON",
"KokkosTools_ENABLE_SINGLE" : "ON",
"KokkosTools_ENABLE_MPI" : "ON"
"KokkosTools_ENABLE_MPI" : "ON",
"KokkosTools_ENABLE_PAPI" : "ON"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions profiling/papi-connector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
add_library(kp_papi_connector SHARED kp_papi_connector.cpp)
kp_add_library(kp_papi_connector kp_papi_connector.cpp)

target_link_libraries(kp_papi_connector PRIVATE PAPI::PAPI)
target_link_libraries(kp_papi_connector PRIVATE PAPI::PAPI)

0 comments on commit 6dae155

Please sign in to comment.