Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 37a1e694 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

add eztrace module to intercept coreblas functions

parent 11b9f87a
No related branches found
No related tags found
No related merge requests found
###
#
# @copyright (c) 2009-2014 The University of Tennessee and The University
# of Tennessee Research Foundation.
# All rights reserved.
# @copyright (c) 2012-2015 Inria. All rights reserved.
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
#
# @file CMakeLists.txt
#
# @project MORSE
# MORSE is a software package provided by:
# Inria Bordeaux - Sud-Ouest,
# Univ. of Tennessee,
# King Abdullah Univesity of Science and Technology
# Univ. of California Berkeley,
# Univ. of Colorado Denver.
#
# @version 0.9.0
# @author Florent Pruvost
# @date 14-09-2015
#
###
if (NOT EZTRACE_FOUND)
find_package(EZTRACE)
endif()
if (EZTRACE_FOUND AND EZTRACE_DIR_FOUND)
set(EZTRACE_eztrace_create_plugin_DIR "EZTRACE_eztrace_create_plugin_DIR-NOTFOUND")
find_path(EZTRACE_eztrace_create_plugin_DIR
NAMES eztrace_create_plugin
HINTS ${EZTRACE_DIR_FOUND}/bin)
if (EZTRACE_eztrace_create_plugin_DIR)
set(EZTRACE_CREATE_PLUGIN "${EZTRACE_eztrace_create_plugin_DIR}/eztrace_create_plugin")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output
COMMAND ${EZTRACE_CREATE_PLUGIN}
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/coreblas_eztrace_module
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/coreblas_eztrace_module
)
add_custom_target(
eztrace-module-chameleon_cpu_func-dir ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/output
)
add_custom_command(
OUTPUT libeztrace-autostart-chameleon_cpu_func.so libeztrace-chameleon_cpu_func.so libeztrace-convert-chameleon_cpu_func.so
COMMAND make
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/output
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/output
)
add_custom_target(
eztrace-module-chameleon_cpu_func-libs ALL
DEPENDS libeztrace-autostart-chameleon_cpu_func.so libeztrace-chameleon_cpu_func.so libeztrace-convert-chameleon_cpu_func.so
)
# installation
# ------------
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/output/libeztrace-autostart-chameleon_cpu_func.so
${CMAKE_CURRENT_BINARY_DIR}/output/libeztrace-chameleon_cpu_func.so
${CMAKE_CURRENT_BINARY_DIR}/output/libeztrace-convert-chameleon_cpu_func.so
DESTINATION ${EZTRACE_LIBRARY_DIRS}
)
endif (EZTRACE_eztrace_create_plugin_DIR)
endif (EZTRACE_FOUND AND EZTRACE_DIR_FOUND)
###
### END CMakeLists.txt
###
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment