fix JIT profiling with VTune
This commit is contained in:
parent
613280d3b4
commit
a864f845e0
|
@ -1,5 +1,10 @@
|
||||||
|
|
||||||
find_path(VTUNE_PATH "")
|
find_path(VTUNE_PATH "")
|
||||||
|
|
||||||
include_directories("${VTUNE_PATH}/include")
|
set(VTUNE_INCLUDE_DIR "${VTUNE_PATH}/include")
|
||||||
link_directories("${VTUNE_PATH}/lib64")
|
|
||||||
|
if (WIN32)
|
||||||
|
set(VTUNE_LIBRARY "${VTUNE_PATH}/lib64/jitprofiling.lib")
|
||||||
|
else()
|
||||||
|
set(VTUNE_LIBRARY "${VTUNE_PATH}/lib64/jitprofiling.a")
|
||||||
|
endif()
|
||||||
|
|
|
@ -122,7 +122,7 @@ if (ENABLE_JIT)
|
||||||
target_compile_definitions(core PUBLIC JIT_ENABLED)
|
target_compile_definitions(core PUBLIC JIT_ENABLED)
|
||||||
|
|
||||||
if (ENABLE_JIT_PROFILING)
|
if (ENABLE_JIT_PROFILING)
|
||||||
include(cmake/FindVTune.cmake)
|
include(../cmake/FindVTune.cmake)
|
||||||
add_definitions(-DJIT_PROFILING_ENABLED)
|
add_definitions(-DJIT_PROFILING_ENABLED)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@ -134,5 +134,6 @@ elseif(NOT APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_JIT_PROFILING)
|
if (ENABLE_JIT_PROFILING)
|
||||||
target_link_libraries(core PRIVATE jitprofiling)
|
target_include_directories(core PRIVATE "${VTUNE_INCLUDE_DIR}")
|
||||||
|
target_link_libraries(core PRIVATE "${VTUNE_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue