forked from nod-ai/iree-amd-aie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiree_runtime_plugin.cmake
More file actions
32 lines (26 loc) · 1.15 KB
/
Copy pathiree_runtime_plugin.cmake
File metadata and controls
32 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2023 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
include(FetchContent)
set(IREE_AMD_AIE_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}")
set(IREE_MLIR_AIR_SOURCE_DIR "${IREE_AMD_AIE_SOURCE_DIR}/third_party/mlir-air/mlir")
set(IREE_MLIR_AIE_SOURCE_DIR "${IREE_AMD_AIE_SOURCE_DIR}/third_party/mlir-aie")
set(IREE_AMD_AIE_ENABLE_XRT_DRIVER OFF)
if("xrt" IN_LIST IREE_EXTERNAL_HAL_DRIVERS)
message(STATUS "Enabling XRT build because it is an enabled HAL driver")
set(IREE_AMD_AIE_ENABLE_XRT_DRIVER ON)
endif()
if(IREE_AMD_AIE_ENABLE_XRT_DRIVER)
set(Boost_USE_STATIC_LIBS ON CACHE BOOL "" FORCE)
find_package(XRT REQUIRED)
find_package(Threads REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem program_options system)
message(STATUS "Boost include directories:" ${Boost_INCLUDE_DIRS})
if(NOT WIN32)
find_package(RapidJSON REQUIRED)
endif()
endif()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/runtime/src AMD-AIE)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/experimental AMD-AIE-experimental)