Skip to content

Commit

Permalink
Try to drop GIL
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Nov 3, 2023
1 parent 69b734f commit dacc1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/julia/libjulia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dacc1f1

Please sign in to comment.