CMakeLists.txt 630 Bytes
Newer Older
Paul's avatar
Paul committed
1

Paul's avatar
Paul committed
2
add_library(migraph 
Paul's avatar
Paul committed
3
    auto_contiguous.cpp
Paul's avatar
Paul committed
4
    dead_code_elimination.cpp
5
    eliminate_contiguous.cpp
Paul's avatar
Paul committed
6
    env.cpp
Paul's avatar
Paul committed
7
    generate.cpp
Paul's avatar
Paul committed
8
9
    program.cpp
    shape.cpp
Paul's avatar
Paul committed
10
    simplify_reshapes.cpp
mei-ye's avatar
staging  
mei-ye committed
11
    opt/memory_coloring.cpp
mei-ye's avatar
staging  
mei-ye committed
12
    opt/memory_coloring_impl.cpp
Paul's avatar
Paul committed
13
)
Paul's avatar
Paul committed
14
15
rocm_clang_tidy_check(migraph)
target_include_directories(migraph PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
Paul's avatar
Paul committed
16
17

add_subdirectory(onnx)
Paul's avatar
Paul committed
18
add_subdirectory(targets/cpu)
Paul's avatar
Paul committed
19
if(MIGRAPH_ENABLE_GPU)
Paul's avatar
Paul committed
20
add_subdirectory(targets/gpu)
Paul's avatar
Paul committed
21
endif()
mei-ye's avatar
staging  
mei-ye committed
22
23
24
25
26
27

install (TARGETS migraph
   LIBRARY DESTINATION /opt/rocm/lib)

install (DIRECTORY include/migraph DESTINATION /opt/rocm/include)