Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
scheduler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
scheduler
Commits
8adfd27b
Commit
8adfd27b
authored
Apr 17, 2023
by
Zircon Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add structure info.
parent
ba722faa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
7 deletions
+71
-7
.gitignore
+5
-0
CMakeLists.txt
+12
-7
README.md
+53
-0
tools/CMakeLists.txt
+1
-0
No files found.
.gitignore
View file @
8adfd27b
...
@@ -74,3 +74,8 @@ iree/builtins/**/bin/*.ll
...
@@ -74,3 +74,8 @@ iree/builtins/**/bin/*.ll
# Local cache files
# Local cache files
llvm-external-projects/iree-dialects/.cache
llvm-external-projects/iree-dialects/.cache
# (temp) third_party folder
/third_party
.cache
CMakeLists.txt
View file @
8adfd27b
...
@@ -9,17 +9,22 @@ set(CMAKE_CXX_STANDARD 17)
...
@@ -9,17 +9,22 @@ set(CMAKE_CXX_STANDARD 17)
set
(
CMAKE_CXX_STANDARD_REQUIRED YES
)
set
(
CMAKE_CXX_STANDARD_REQUIRED YES
)
# Options
# Options
set
(
LLVM_SOURCE_DIR
""
CACHE PATH
"Path to LLVM source directory"
)
#
set(LLVM_SOURCE_DIR "" CACHE PATH "Path to LLVM source directory")
set
(
LLVM_BUILD_DIR
${
LLVM_SOURCE_DIR
}
/build CACHE PATH
"Path to LLVM build directory"
)
#
set(LLVM_BUILD_DIR ${LLVM_SOURCE_DIR}/build CACHE PATH "Path to LLVM build directory")
set
(
MLIR_HLO_SOURCE_DIR
""
CACHE PATH
"Path to MLIR-HLO source directory"
)
#
set(MLIR_HLO_SOURCE_DIR "" CACHE PATH "Path to MLIR-HLO source directory")
set
(
MLIR_HLO_BUILD_DIR
${
MLIR_HLO_SOURCE_DIR
}
/build CACHE PATH
"Path to MLIR-HLO build directory"
)
#
set(MLIR_HLO_BUILD_DIR ${MLIR_HLO_SOURCE_DIR}/build CACHE PATH "Path to MLIR-HLO build directory")
set
(
IREE_SOURCE_DIR
""
CACHE PATH
"Path to IREE source directory"
)
set
(
IREE_SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/third_party/iree
CACHE PATH
"Path to IREE source directory"
)
set
(
IREE_BUILD_DIR
${
IREE_SOURCE_DIR
}
/build CACHE PATH
"Path to IREE build directory"
)
#
set(IREE_BUILD_DIR ${IREE_SOURCE_DIR}/build CACHE PATH "Path to IREE build directory")
# Find Packages
# Find Packages
# set(MLIR_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir)
# set(MLIR_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir)
# set(MHLO_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir-hlo)
# set(MHLO_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir-hlo)
# find_package(MHLO REQUIRED CONFIG)
# find_package(MHLO REQUIRED CONFIG)
add_subdirectory
(
${
IREE_SOURCE_DIR
}
)
# Set subdirectories
add_subdirectory
(
third_party/iree
)
add_subdirectory
(
tools
)
# Set include directories
include_directories
(
${
IREE_SOURCE_DIR
}
/iree/compiler/src
)
README.md
0 → 100644
View file @
8adfd27b
# IPRC Scheduler Project
# 1. Configure the project
Clone the IREE projoect into the
`third_party/iree`
directory.
```
shell
git clone git@github.com:openxla/iree.git
```
Checkout IREE to
`a61c0e2a3`
to match our LLVM version.
```
shell
git checkout a61c0e2a3
```
# 2. Build the project
Build the project with the commands used when compiling IREE.
# 3. Use the project
## Purposed project structure
```
iprc-scheduler/
│
├── CMakeLists.txt
├── README.md
│
├── dialects/
├── transforms/
├── python/ # Python bindings for the project
├── third_party/
│ └── IREE/
│ └── ...
│
├── tools/ # Command-line tools and utilities
│ ├── IREE-OPT
│ ├── IREE-TRANSLATE
│ └── ... # Additional tools for transforming IR for sketches and so on
│
├── test/
│ ├── CMakeLists.txt
│ ├── scheduler/
│ │ └── ...
│ └── ...
│
└── examples/
└── ...
```
tools/CMakeLists.txt
0 → 100644
View file @
8adfd27b
add_subdirectory
(
iprc-opt
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment