From dacc1f1f5c50405bada938b869defe9044ae3109 Mon Sep 17 00:00:00 2001 From: Moelf Date: Fri, 3 Nov 2023 15:46:28 +0100 Subject: [PATCH] Try to drop GIL --- src/julia/core.py | 1 + src/julia/libjulia.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/julia/core.py b/src/julia/core.py index 183298c4..192a1bec 100644 --- a/src/julia/core.py +++ b/src/julia/core.py @@ -481,6 +481,7 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None, use_custom_sysimage = options.sysimage is not None logger.debug("use_custom_sysimage = %r", use_custom_sysimage) logger.debug("compiled_modules = %r", options.compiled_modules) + options.compiled_modules = "no" if not ( options.compiled_modules == "no" or is_compatible_python diff --git a/src/julia/libjulia.py b/src/julia/libjulia.py index b0a7eb64..7d2089a2 100644 --- a/src/julia/libjulia.py +++ b/src/julia/libjulia.py @@ -217,7 +217,7 @@ def __init__(self, libjulia_path, bindir, sysimage): ) with self._pathhack(): - self.libjulia = ctypes.PyDLL(libjulia_path, ctypes.RTLD_GLOBAL) + self.libjulia = ctypes.CDLL(libjulia_path, ctypes.RTLD_GLOBAL) setup_libjulia(self.libjulia)