Skip to content

Commit

Permalink
remove RTLD_GLOBAL
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Nov 3, 2023
1 parent 13df296 commit c6a604f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions python/dialects/aie.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *

0 comments on commit c6a604f

Please sign in to comment.