-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into woptim/shared-ci-2023-12-0
- Loading branch information
Showing
6 changed files
with
404 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Try to find LDMS headers and libraries. | ||
# | ||
# Usage of this module as follows: | ||
# | ||
# find_package(LDMS) | ||
# | ||
# Variables used by this module, they can change the default behaviour and need | ||
# to be set before calling find_package: | ||
# | ||
# LDMS_PREFIX Set this variable to the root installation of | ||
# LDMS if the module has problems finding the | ||
# proper installation path. | ||
# | ||
# Variables defined by this module: | ||
# | ||
# LDMS_FOUND System has LDMS libraries and headers | ||
# LDMS_LIBRARIES The LDMS library | ||
# LDMS_INCLUDE_DIRS The location of LDMS headers | ||
|
||
find_library(LDMS_LIBLDMS | ||
NAMES ldms | ||
PATHS /usr/lib64 /usr/lib /opt/ovis/lib | ||
) | ||
|
||
find_library(LDMS_LIBSTREAM | ||
NAMES ldmsd_stream | ||
PATHS /usr/lib64 /usr/lib /opt/ovis/lib | ||
) | ||
|
||
find_path(LDMS_INCLUDE_DIRS | ||
NAMES "ldms.h" "ldmsd_stream.h" | ||
PATH_SUFFIXES "ldms" | ||
) | ||
message(STATUS "libldms.so => ${LDMS_LIBRARIES}") | ||
message(STATUS "ldmsd_stream.h => ${LDMS_INCLUDE_DIRS}") | ||
message(STATUS "ldms.h => ${LDMS_INCLUDE_DIRS}") | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LDMS DEFAULT_MSG | ||
LDMS_LIBLDMS | ||
LDMS_LIBSTREAM | ||
LDMS_INCLUDE_DIRS | ||
) | ||
|
||
mark_as_advanced( | ||
LDMS_PREFIX_DIRS | ||
LDMS_LIBLDMS | ||
LDMS_LIBSTREAM | ||
LDMS_INCLUDE_DIRS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
include_directories(${LDMS_INCLUDE_DIRS}) | ||
|
||
set(CALIPER_LDMS_SOURCES | ||
LdmsForwarder.cpp) | ||
|
||
add_library(caliper-ldms OBJECT ${CALIPER_LDMS_SOURCES}) | ||
|
||
add_service_objlib("caliper-ldms") | ||
add_caliper_service("ldms CALIPER_HAVE_LDMS") | ||
|
||
|
Oops, something went wrong.