ad2d55c144
This reverts commit 374ead1d19.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9
21 sor
482 B
CMake
21 sor
482 B
CMake
project(MatrixTranspose)
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
# Search for rocm in common locations
|
|
list(APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm)
|
|
|
|
# Find hip
|
|
find_package(hip)
|
|
|
|
# Set compiler and linker
|
|
set(CMAKE_CXX_COMPILER ${HIP_HIPCC_EXECUTABLE})
|
|
set(CMAKE_CXX_LINKER ${HIP_HIPCC_EXECUTABLE})
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
# Create the excutable
|
|
add_executable(MatrixTranspose MatrixTranspose.cpp)
|
|
|
|
# Link with HIP
|
|
target_link_libraries(MatrixTranspose hip::host)
|