Skip to content
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

Build light weight PyRuntime without llvm or onnx-mlir #3044

Merged
merged 15 commits into from
Jan 29, 2025
Merged
Prev Previous commit
Next Next commit
add comments
Signed-off-by: Chen Tong <chentong@us.ibm.com>
  • Loading branch information
chentong319 committed Jan 27, 2025
commit 069467887b2b548819addb048b8b2fa01989d649
3 changes: 3 additions & 0 deletions MLIR.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

if (ONNX_MLIR_ENABLE_PYRUNTIME_LIT)
# This function is defined in llvm_project.
# Define a dummy function for PYRUNTIME_LIT.
# If needed, the definition from llvm_project can be copied.
function(llvm_update_compile_flags name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a one liner comment on why this function is defined here.

endfunction()
else()
Expand Down
5 changes: 5 additions & 0 deletions src/Runtime/ExecutionSession.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
#include <string>

#include "OnnxMlirRuntime.h"

// LLVM provides the wrapper class, llvm::sys::DynamicLibrary, for dynamic
// library. When PYRUNTIME_LIT is built without the LLVM, the handle type for
// dynamic library in Linux is used. DynamicLibraryHandleType is defined for
// the two cases.
#ifndef ENABLE_PYRUNTIME_LIT
#include "llvm/Support/DynamicLibrary.h"
typedef llvm::sys::DynamicLibrary DynamicLibraryHandleType;
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy