Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mlir/examples/standalone/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ add_mlir_python_common_capi_library(StandalonePythonCAPI
# TODO: Remove this in favor of showing fine grained registration once
# available.
MLIRPythonExtension.RegisterEverything
MLIRPythonExtension.ExecutionEngine
MLIRPythonSources.Core
MLIRPythonSources.Dialects
)

################################################################################
Expand Down
8 changes: 7 additions & 1 deletion mlir/examples/standalone/test/python/smoketest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# RUN: %python %s | FileCheck %s

from mlir_standalone.ir import *
from mlir_standalone.dialects import builtin as builtin_d, standalone as standalone_d
from mlir_standalone import execution_engine, passmanager
from mlir_standalone.dialects import (
builtin as builtin_d,
linalg as linalg_d,
sparse_tensor as sparse_tensor_d,
standalone as standalone_d,
)

with Context():
standalone_d.register_dialect()
Expand Down
Loading