CMakeLists.txt 487 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
    miopen_target.cpp
Paul's avatar
Paul committed
12
13
    miopen_lowering.cpp
    miopen_write_literals.cpp
Paul's avatar
Paul committed
14
)
Paul's avatar
Paul committed
15
rocm_clang_tidy_check(migraph_miopen)
wsttiger's avatar
wsttiger committed
16
target_link_libraries(migraph_miopen migraph MIOpen rocblas)
Paul's avatar
Paul committed
17
target_include_directories(migraph_miopen PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)