Skip to content

Commit dacc1f1

Browse files
committed
Try to drop GIL
1 parent 69b734f commit dacc1f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/julia/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
481481
use_custom_sysimage = options.sysimage is not None
482482
logger.debug("use_custom_sysimage = %r", use_custom_sysimage)
483483
logger.debug("compiled_modules = %r", options.compiled_modules)
484+
options.compiled_modules = "no"
484485
if not (
485486
options.compiled_modules == "no"
486487
or is_compatible_python

src/julia/libjulia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self, libjulia_path, bindir, sysimage):
217217
)
218218

219219
with self._pathhack():
220-
self.libjulia = ctypes.PyDLL(libjulia_path, ctypes.RTLD_GLOBAL)
220+
self.libjulia = ctypes.CDLL(libjulia_path, ctypes.RTLD_GLOBAL)
221221

222222
setup_libjulia(self.libjulia)
223223

0 commit comments

Comments
 (0)