Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
amfe
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Aerospace and Mechanical Engineering
amfe
Commits
a3922dc3
Commit
a3922dc3
authored
1 year ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
fix missing dll path for os.add_dll_directory + print debug info
parent
6235f59d
No related branches found
No related tags found
1 merge request
!9
fix missing dll path for os.add_dll_directory + print debug info
Pipeline
#17335
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fwk/wutils.py
+8
-2
8 additions, 2 deletions
fwk/wutils.py
with
8 additions
and
2 deletions
fwk/wutils.py
+
8
−
2
View file @
a3922dc3
...
...
@@ -124,12 +124,18 @@ def initDLL():
# For new versions of python, DLLs must be loaded via a specific command
import
platform
,
os
,
sys
if
'
Windows
'
in
platform
.
uname
()
and
sys
.
version_info
.
minor
>=
8
:
lookfor
=
[
'
tbb
'
,
'
mkl
'
,
'
vtk
'
]
lookfor
=
[
'
tbb
'
,
'
mkl
'
,
'
vtk
'
,
'
mumps
'
,
'
compiler
'
]
for
k
in
lookfor
:
print
(
f
'
[initDLL] looking for
{
k
}
'
)
found
=
False
for
v
in
os
.
environ
[
'
path
'
].
split
(
'
;
'
):
if
k
in
v
.
lower
():
print
(
f
'
[initDLL]
\t
os.add_dll_directory(
"
{
v
}
"
)
'
)
os
.
add_dll_directory
(
v
)
found
=
True
break
if
not
found
:
print
(
'
[initDLL]**WARNING: {k} dll path not found!
'
)
# ------------------------------------------------------------------------------
...
...
@@ -158,7 +164,7 @@ def initMKL(verb=False):
for
s
in
[
'
OMP
'
,
'
MKL
'
,
'
KMP
'
]:
print
(
'
* %s environment:
'
%
s
)
for
key
,
value
in
os
.
environ
.
items
():
if
s
in
key
:
if
s
+
'
_
'
in
key
:
print
(
'
%s = %s
'
%
(
key
,
value
))
print
(
''
)
...
...
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