Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaudi
Gaudi
Commits
aeb7cf6c
Commit
aeb7cf6c
authored
2 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Plain Diff
Release the GIL when bootstrapping with Gaudi.Application
See merge request
!1387
parents
8f59b2cd
be87e01a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1387
Release the GIL when bootstrapping with Gaudi.Application
Pipeline
#4759563
canceled
2 years ago
Stage: pre-build-checks
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Gaudi/python/Gaudi/__init__.py
+3
-3
3 additions, 3 deletions
Gaudi/python/Gaudi/__init__.py
with
3 additions
and
3 deletions
Gaudi/python/Gaudi/__init__.py
+
3
−
3
View file @
aeb7cf6c
...
...
@@ -88,9 +88,9 @@ class Application(object):
def
__init__
(
self
,
opts
,
appType
=
"
Gaudi::Application
"
):
global
_GaudiKernelLib
if
_GaudiKernelLib
is
None
:
#
FIXME: note that we need Py
DLL instead of
C
DLL
if the
call
s
to
#
Python functions are not
protected
with
the GIL
.
gkl
=
_GaudiKernelLib
=
ctypes
.
Py
DLL
(
#
Note: using C
DLL instead of
Py
DLL
means that every
call to
the Python C
#
API must be
protected
acquiring
the GIL
gkl
=
_GaudiKernelLib
=
ctypes
.
C
DLL
(
"
libGaudiKernel
"
+
(
"
.dylib
"
if
sys
.
platform
==
"
darwin
"
else
"
.so
"
),
mode
=
ctypes
.
RTLD_GLOBAL
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment