Skip to content

Commit 9d0393f

Browse files
authored
remove warnings in refbackend.py (#126)
1 parent 16d2a67 commit 9d0393f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mlir/extras/runtime/refbackend.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
Path(_mlir_libs.__file__).parent
4949
/ f"{shlib_prefix()}mlir_async_runtime.{shlib_ext()}"
5050
)
51-
if not ASYNC_RUNTIME_LIB_PATH.exists():
52-
warnings.warn(f"{ASYNC_RUNTIME_LIB_PATH=} doesn't exist")
5351

5452
if C_RUNNER_UTILS_LIB_PATH := os.getenv("C_RUNNER_UTILS_LIB_PATH"):
5553
C_RUNNER_UTILS_LIB_PATH = Path(C_RUNNER_UTILS_LIB_PATH)
@@ -59,18 +57,13 @@
5957
/ f"{shlib_prefix()}mlir_c_runner_utils.{shlib_ext()}"
6058
)
6159

62-
if not C_RUNNER_UTILS_LIB_PATH.exists():
63-
warnings.warn(f"{C_RUNNER_UTILS_LIB_PATH=} doesn't exist")
64-
6560
if RUNNER_UTILS_LIB_PATH := os.getenv("RUNNER_UTILS_LIB_PATH"):
6661
RUNNER_UTILS_LIB_PATH = Path(RUNNER_UTILS_LIB_PATH)
6762
else:
6863
RUNNER_UTILS_LIB_PATH = (
6964
Path(_mlir_libs.__file__).parent
7065
/ f"{shlib_prefix()}mlir_runner_utils.{shlib_ext()}"
7166
)
72-
if not RUNNER_UTILS_LIB_PATH.exists():
73-
warnings.warn(f"{RUNNER_UTILS_LIB_PATH=} doesn't exist")
7467

7568

7669
def get_ctype_func(mlir_ret_types):

0 commit comments

Comments
 (0)