From dda32614611b7c39ce732e7b04252f4be69af256 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Mon, 17 Apr 2023 13:30:01 +0000 Subject: [PATCH] SWDEV-394873: Fixing Build IDs for HIP related tests Change-Id: I49656c0383782c69cc88eb6d874727149375b32c --- tests/featuretests/profiler/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/featuretests/profiler/CMakeLists.txt b/tests/featuretests/profiler/CMakeLists.txt index c6c76da40d..22d8e94961 100644 --- a/tests/featuretests/profiler/CMakeLists.txt +++ b/tests/featuretests/profiler/CMakeLists.txt @@ -52,6 +52,7 @@ endforeach() set_source_files_properties(apps/hello_world_hip.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1) hip_add_executable(hip_helloworld apps/hello_world_hip.cpp) set_target_properties(hip_helloworld PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tests/featuretests/profiler/apps") +target_link_options(hip_helloworld PRIVATE "-Wl,--build-id=md5") install(TARGETS hip_helloworld RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests/featuretests/profiler/apps COMPONENT tests) @@ -59,6 +60,7 @@ install(TARGETS hip_helloworld RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/ set_source_files_properties(apps/vector_add_hip.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1) hip_add_executable(hip_vectoradd apps/vector_add_hip.cpp) set_target_properties(hip_vectoradd PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tests/featuretests/profiler/apps") +target_link_options(hip_vectoradd PRIVATE "-Wl,--build-id=md5") install(TARGETS hip_vectoradd RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests/featuretests/profiler/apps COMPONENT tests) #mpi_vectoradd @@ -68,6 +70,7 @@ include_directories(SYSTEM ${MPI_INCLUDE_PATH}) set_source_files_properties(apps/vector_add_mpi.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1) hip_add_executable(mpi_vectoradd apps/vector_add_mpi.cpp) set_target_properties(mpi_vectoradd PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tests/featuretests/profiler/apps") +target_link_options(mpi_vectoradd PRIVATE "-Wl,--build-id=md5") install(TARGETS mpi_vectoradd RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests/featuretests/profiler/apps COMPONENT tests) target_link_libraries(mpi_vectoradd ${MPI_C_LIBRARIES} stdc++fs) endif() @@ -90,6 +93,7 @@ endif() set_source_files_properties(apps/async_mem_copy.cpp PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1) hip_add_executable(hsa_async_mem_copy apps/async_mem_copy.cpp) set_target_properties(hsa_async_mem_copy PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tests/featuretests/profiler/apps") +target_link_options(hsa_async_mem_copy PRIVATE "-Wl,--build-id=md5") install(TARGETS hsa_async_mem_copy RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests/featuretests/profiler/apps COMPONENT tests) target_link_libraries(hsa_async_mem_copy hsa-runtime64::hsa-runtime64 Threads::Threads dl stdc++fs) @@ -114,6 +118,7 @@ hip_add_executable(multithreaded_testapp apps/multithreaded_testapp.cpp ../utils target_include_directories(multithreaded_testapp PRIVATE ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/featuretests/profiler/apps) target_link_libraries(multithreaded_testapp hsa-runtime64::hsa-runtime64 Threads::Threads dl stdc++fs amd_comgr) set_target_properties(multithreaded_testapp PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tests/featuretests/profiler/apps") +target_link_options(multithreaded_testapp PRIVATE "-Wl,--build-id=md5") install(TARGETS multithreaded_testapp RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests/featuretests/profiler/apps COMPONENT tests) add_dependencies(tests multithreaded_testapp) @@ -178,6 +183,7 @@ target_link_libraries(runFeatureTests PRIVATE ${ROCPROFILER_TARGET} ${ROCPROFIL GTest::gtest GTest::gtest_main Threads::Threads dl stdc++fs amd_comgr) add_dependencies(tests runFeatureTests) +target_link_options(runFeatureTests PRIVATE "-Wl,--build-id=md5") install(TARGETS runFeatureTests RUNTIME DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests COMPONENT tests) add_test(AllTests runFeatureTests)