Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a90e1709 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

starpu/cmake: Bugfix for the multiple definition of __HIP_PLATFORM_AMD__ to null and 1

parent 01075844
No related branches found
No related tags found
1 merge request!518gitlab-ci-initial-cache.cmake: CMAKE_C_FLAGS must be set as a cache variable...
...@@ -39,6 +39,17 @@ include(CheckCSourceRuns) ...@@ -39,6 +39,17 @@ include(CheckCSourceRuns)
set(CHAMELEON_STARPU_VERSION "1.3" CACHE STRING "necessary STARPU API version") set(CHAMELEON_STARPU_VERSION "1.3" CACHE STRING "necessary STARPU API version")
find_package(STARPU ${CHAMELEON_STARPU_VERSION} REQUIRED) find_package(STARPU ${CHAMELEON_STARPU_VERSION} REQUIRED)
# Bug fix of hip defining to null the variable in the perl script used
# by starpu, and to 1 in the cmake targe file used by chameleon
# -------------------------------------------------------------
get_target_property(_DEFS MORSE::STARPU INTERFACE_COMPILE_OPTIONS)
if (_DEFS)
list(TRANSFORM _DEFS REPLACE "-D__HIP_PLATFORM_AMD__=" "-D__HIP_PLATFORM_AMD__=1" )
set_target_properties(MORSE::STARPU PROPERTIES INTERFACE_COMPILE_OPTIONS "${_DEFS}")
endif()
# -------------------------------------------------------------
morse_export_imported_target(MORSE STARPU starpu chameleon) morse_export_imported_target(MORSE STARPU starpu chameleon)
# check available functions # check available functions
......
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