Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Glenn K. Lockwood
darshan
Commits
18486628
Commit
18486628
authored
Jan 14, 2021
by
Jakob Luettgau
Browse files
Allow easy debugging via logging for darshan-utils discovery.
parent
154952fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/pydarshan/darshan/discover_darshan.py
View file @
18486628
...
...
@@ -149,6 +149,7 @@ def find_utils(ffi, libdutil):
if
libdutil
is
None
:
try
:
library_path
=
discover_darshan_shutil
()
logger
.
debug
(
f
"Attempting library_path=
{
library_path
}
via shutil discovery."
)
libdutil
=
ffi
.
dlopen
(
library_path
+
"/lib/libdarshan-util.so"
)
except
:
libdutil
=
None
...
...
@@ -156,24 +157,27 @@ def find_utils(ffi, libdutil):
if
libdutil
is
None
:
try
:
library_path
=
discover_darshan_pkgconfig
()
logger
.
debug
(
f
"Attempting library_path=
{
library_path
}
via pkgconfig discovery."
)
libdutil
=
ffi
.
dlopen
(
library_path
+
"/lib/libdarshan-util.so"
)
except
:
libdutil
=
None
if
libdutil
is
None
:
try
:
DARSHAN_PATH
=
discover_darshan_wheel
()
darshan_path
=
discover_darshan_wheel
()
import
glob
library_path
=
glob
.
glob
(
f
'
{
DARSHAN_PATH
}
/libdarshan-util*.so'
)[
0
]
library_path
=
glob
.
glob
(
f
'
{
darshan_path
}
/libdarshan-util*.so'
)[
0
]
logger
.
debug
(
f
"Attempting library_path=
{
library_path
}
in case of binary wheel."
)
libdutil
=
ffi
.
dlopen
(
library_path
)
except
:
libdutil
=
None
if
libdutil
is
None
:
try
:
DARSHAN_PATH
=
discover_darshan_pyinstaller
()
darshan_path
=
discover_darshan_pyinstaller
()
import
glob
library_path
=
glob
.
glob
(
f
'
{
DARSHAN_PATH
}
/libdarshan-util*.so'
)[
0
]
library_path
=
glob
.
glob
(
f
'
{
darshan_path
}
/libdarshan-util*.so'
)[
0
]
logger
.
debug
(
f
"Attempting library_path=
{
library_path
}
for pyinstaller bundles."
)
libdutil
=
ffi
.
dlopen
(
library_path
)
except
:
libdutil
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment