[rocprofiler-systems] Update install path for examples (#2625)
* Update install path for examples to `share/rocprofiler-systems/examples` ---- Co-authored-by: Kian Cossettini <Kian.Cossettini@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com>
이 커밋은 다음에 포함됨:
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) Advanced Micro Devices, Inc.
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
|
||||
|
||||
project(rocprofiler-systems-mpi-examples LANGUAGES C CXX)
|
||||
@@ -77,16 +80,24 @@ add_executable(mpi-example mpi.cpp)
|
||||
target_link_libraries(mpi-example PRIVATE mpi-cxx-interface-library)
|
||||
|
||||
if(ROCPROFSYS_INSTALL_EXAMPLES)
|
||||
install(
|
||||
TARGETS
|
||||
mpi-example
|
||||
mpi-allgather
|
||||
mpi-bcast
|
||||
mpi-all2all
|
||||
mpi-reduce
|
||||
mpi-scatter-gather
|
||||
mpi-send-recv
|
||||
DESTINATION bin
|
||||
COMPONENT rocprofiler-systems-examples
|
||||
set(MPI_EXAMPLES
|
||||
mpi-example
|
||||
mpi-allgather
|
||||
mpi-bcast
|
||||
mpi-all2all
|
||||
mpi-reduce
|
||||
mpi-scatter-gather
|
||||
mpi-send-recv
|
||||
mpi-allreduce
|
||||
)
|
||||
|
||||
foreach(MPI_EXAMPLE IN LISTS MPI_EXAMPLES)
|
||||
if(TARGET ${MPI_EXAMPLE})
|
||||
install(
|
||||
TARGETS ${MPI_EXAMPLE}
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/rocprofiler-systems/examples
|
||||
COMPONENT rocprofiler-systems-examples
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
새 이슈에서 참조
사용자 차단