-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TPP-MLIR as out-of-tree dependency #142
Conversation
…s. Removed reference of TPP in all places except transformations and main ov library.
src/common/transformations/src/transformations/mlir/mlir_op.cpp
Outdated
Show resolved
Hide resolved
|
||
cmake -G Ninja .. \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake -G Ninja .. \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | ||
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | ||
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shellcheck (suggestion)] reported by reviewdog 🐶
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | |
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ | |
-DMLIR_DIR="$CUSTOM_LLVM_ROOT"/lib/cmake/mlir \ | |
-DLLVM_EXTERNAL_LIT="$CUSTOM_LLVM_ROOT"/bin/llvm-lit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two changes I propose will make it compile but it's still missing the MLIR libraries. I'm trying to see if I can move this logic into TPP MLIR itself.
|
||
cmake -G Ninja .. \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake -G Ninja .. \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | ||
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | ||
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shellcheck (suggestion)] reported by reviewdog 🐶
-DMLIR_DIR=$CUSTOM_LLVM_ROOT/lib/cmake/mlir \ | |
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \ | |
-DMLIR_DIR="$CUSTOM_LLVM_ROOT"/lib/cmake/mlir \ | |
-DLLVM_EXTERNAL_LIT="$CUSTOM_LLVM_ROOT"/bin/llvm-lit \ |
Based on https://github.com/rengolin/openvino/tree/enable-tpp-mlir. Add include directories to
transformations
and link dependencies to openvino library only.