CMakeLists.txt 598 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
4

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

5
6
7
8
# rocblas
find_package(rocblas REQUIRED PATHS /opt/rocm)
message(STATUS "Build with rocblas")

Paul's avatar
Paul committed
9
10
11
12
if(NOT TARGET MIOpen)
    message(SEND_ERROR "Cant find miopen")
endif()

Paul's avatar
Paul committed
13
add_library(migraph_miopen
Paul's avatar
Paul committed
14
    hip.cpp
Paul's avatar
Paul committed
15
    miopen_target.cpp
Paul's avatar
Paul committed
16
17
    miopen_lowering.cpp
    miopen_write_literals.cpp
18
    rocblas.cpp
Paul's avatar
Paul committed
19
)
Paul's avatar
Paul committed
20
rocm_clang_tidy_check(migraph_miopen)
wsttiger's avatar
wsttiger committed
21
target_link_libraries(migraph_miopen migraph MIOpen rocblas)
Paul's avatar
Paul committed
22
target_include_directories(migraph_miopen PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)