https://gitlab.com/eztrace/eztrace/-/merge_requests/40 commit 07cad731f15e624a08984cc89b44b68b57dc06f5 Author: Samuel Thibault Date: Sat Aug 16 01:04:26 2025 +0200 Fix building starpu module and test CFLAGS are needed notably when hip is enabled, which requires __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__ being defined. diff --git a/src/modules/starpu/CMakeLists.txt b/src/modules/starpu/CMakeLists.txt index 794d3931..9434d8cf 100644 --- a/src/modules/starpu/CMakeLists.txt +++ b/src/modules/starpu/CMakeLists.txt @@ -19,6 +19,11 @@ target_include_directories(eztrace-starpu ${STARPU_INCLUDE_DIRS} ) +target_compile_options(eztrace-starpu + PRIVATE + ${STARPU_CFLAGS} +) + target_link_libraries(eztrace-starpu dl eztrace-core diff --git a/test/starpu/CMakeLists.txt b/test/starpu/CMakeLists.txt index b489f82a..61d0abb4 100644 --- a/test/starpu/CMakeLists.txt +++ b/test/starpu/CMakeLists.txt @@ -6,10 +6,12 @@ if (EZTRACE_ENABLE_STARPU) add_executable(starpu_hello starpu_hello.c) target_link_libraries(starpu_hello ${STARPU_LIBRARIES}) + target_compile_options(starpu_hello PRIVATE ${STARPU_CFLAGS}) add_test(build_starpu_hello "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target starpu_hello) add_executable(starpu_mult starpu_mult.c) target_link_libraries(starpu_mult ${STARPU_LIBRARIES}) + target_compile_options(starpu_mult PRIVATE ${STARPU_CFLAGS}) add_test(build_starpu_mult "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target starpu_mult) add_test (NAME starpu_tests COMMAND bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" "${CMAKE_CURRENT_BINARY_DIR}")