CMakeLists.txt 425 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
4
5
6
7
8

list(APPEND CMAKE_PREFIX_PATH /opt/rocm /opt/rocm/hip /opt/rocm/hcc)
find_package(miopen)

if(NOT TARGET MIOpen)
    message(SEND_ERROR "Cant find miopen")
endif()

Paul's avatar
Paul committed
9
add_library(migraph_miopen
Paul's avatar
Paul committed
10
    hip.cpp
Paul's avatar
Paul committed
11
12
    miopen_target.cpp
)
Paul's avatar
Paul committed
13
14
15
rocm_clang_tidy_check(migraph_miopen)
target_link_libraries(migraph_miopen migraph MIOpen)
target_include_directories(migraph_miopen PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)