SWDEV-394873: Fixing Build IDs for HIP related tests
Change-Id: I49656c0383782c69cc88eb6d874727149375b32c
このコミットが含まれているのは:
@@ -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)
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする