Minor bugfix. (#166)
This commit is contained in:
parent
bb17fa965f
commit
dedd5f4a12
|
@ -35,5 +35,5 @@ target_include_directories(PyRuntime PRIVATE
|
|||
${ONNX_MLIR_SRC_ROOT})
|
||||
|
||||
add_dependencies(PyRuntime cruntime)
|
||||
install(FILES Runtime/DynMemRef.h DESTINATION include)
|
||||
install(FILES DynMemRef.h DESTINATION include)
|
||||
install(TARGETS cruntime DESTINATION lib)
|
||||
|
|
|
@ -22,15 +22,15 @@ if (not os.environ.get('ONNX_MLIR_HOME', None)):
|
|||
VERBOSE = os.environ.get('VERBOSE', False)
|
||||
ONNX_MLIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "bin/onnx-mlir")
|
||||
|
||||
# Include runtime directory in python paths, so pyruntime can be imported.
|
||||
# Include runtime directory in python paths, so PyRuntime can be imported.
|
||||
RUNTIME_DIR = os.path.join(os.environ['ONNX_MLIR_HOME'], "lib")
|
||||
sys.path.append(RUNTIME_DIR)
|
||||
|
||||
try:
|
||||
from pyruntime import ExecutionSession
|
||||
from PyRuntime import ExecutionSession
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"Looks like you did not build the pyruntime target, build it by running `make pyruntime`."
|
||||
"Looks like you did not build the PyRuntime target, build it by running `make PyRuntime`."
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue