Commit a781a0a8 authored by THIBAULT Samuel's avatar THIBAULT Samuel

Really fix starpu function detection

parent 54816087
......@@ -585,9 +585,9 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
foreach(libdir ${STARPU_LIBRARY_DIRS})
list(APPEND CMAKE_REQUIRED_FLAGS "-L${libdir}")
endforeach()
list(APPEND CMAKE_REQUIRED_FLAGS "-include" "starpu_simgrid_wrap.h")
string(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
set(CMAKE_REQUIRED_LIBRARIES "${STARPU_SHM_LIBRARIES}")
list(APPEND CMAKE_REQUIRED_FLAGS "-include starpu_simgrid_wrap.h")
check_function_exists(starpu_data_idle_prefetch_on_node STARPU_IDLE_PREFETCH_FOUND)
if ( STARPU_IDLE_PREFETCH_FOUND )
add_definitions(-DCHAMELEON_USE_STARPU_IDLE_PREFETCH)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment