From c6a604f3fa9a87e0c9eb53ba656dfe4310dc0ef1 Mon Sep 17 00:00:00 2001 From: max Date: Thu, 2 Nov 2023 12:56:33 -0500 Subject: [PATCH] remove RTLD_GLOBAL --- python/dialects/aie.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/python/dialects/aie.py b/python/dialects/aie.py index ba247a0ffe..107caf8a61 100644 --- a/python/dialects/aie.py +++ b/python/dialects/aie.py @@ -3,22 +3,5 @@ # Copyright (C) 2022, Advanced Micro Devices, Inc. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -import contextlib -import ctypes -import sys - - -@contextlib.contextmanager -def dl_open_guard(): - old_flags = sys.getdlopenflags() - sys.setdlopenflags(old_flags | ctypes.RTLD_GLOBAL) - yield - sys.setdlopenflags(old_flags) - - -with dl_open_guard(): - # noinspection PyUnresolvedReferences - from .._mlir_libs._aieMlir import * - from ._AIE_ops_gen import * +from .._mlir_libs._aieMlir import * \ No newline at end of file