From eb4255697aafb5ae057f6804ffa6e8df6388aa28 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Wed, 16 Sep 2015 10:00:19 +0000 Subject: [PATCH] add starpu_simgrid_wrap.h in includes when testing starpu functions: in order to intercept main in simulation mode --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e52f6144d..168f7c1ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,8 +551,6 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/") # CHAMELEON depends on a runtime # ------------------------------- - # TODO: discuss on this with Manu - # try to find starpu runtime if( CHAMELEON_SCHED_STARPU ) set(CHAMELEON_STARPU_VERSION "1.1" CACHE STRING "oldest STARPU version desired") @@ -589,6 +587,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/") endforeach() string(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") set(CMAKE_REQUIRED_LIBRARIES "${STARPU_SHM_LIBRARIES}") + set(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) -- GitLab