5b7533e49f
This reverts commit b41a769517.
Reason for revert: <INSERT REASONING HERE>
Change-Id: Ib2d1084ea21461f70f96f95c6025a08f88288357
20 líneas
436 B
CMake
20 líneas
436 B
CMake
project(bit_extract)
|
|
|
|
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})
|
|
|
|
# Create the excutable
|
|
add_executable(bit_extract bit_extract.cpp)
|
|
|
|
# Link with HIP
|
|
target_link_libraries(bit_extract hip::host) |