36f4788ad5
* Add rocprofiler-sdk-utilities.cmake
- contains cmake function rocprofiler_sdk_get_gfx_architectures
* Update perfetto_reader.py
- fix hash collision
* Update project names in tests folders
- rocprofiler-tests -> rocprofiler-sdk-tests
* Fix incorrect allocation-error handling
* [CI] Disable openmp tests for navi2, navi3, and navi4
* Suppress leaks by omptarget and llvm
---------
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
[ROCm/rocprofiler-sdk commit: 2d072f9217]
30 خطوط
975 B
CMake
30 خطوط
975 B
CMake
#
|
|
#
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(rocprofiler-sdk-tests-bin-hip-in-libraries LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
add_executable(hip-in-libraries)
|
|
target_sources(hip-in-libraries PRIVATE hip-in-libraries.cpp)
|
|
target_compile_options(hip-in-libraries PRIVATE -W -Wall -Wextra -Wpedantic -Wshadow
|
|
-Werror)
|
|
target_link_libraries(hip-in-libraries PRIVATE transpose-shared-library
|
|
vector-ops-shared-library)
|
|
|
|
find_package(hip REQUIRED)
|
|
target_link_libraries(hip-in-libraries PRIVATE hip::host)
|
|
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(hip-in-libraries PRIVATE Threads::Threads)
|
|
|
|
if(TRANSPOSE_USE_MPI)
|
|
find_package(MPI REQUIRED)
|
|
target_compile_definitions(hip-in-libraries PRIVATE USE_MPI)
|
|
target_link_libraries(hip-in-libraries PRIVATE MPI::MPI_C)
|
|
endif()
|