Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
TransformerEngine
Commits
bd380048
Unverified
Commit
bd380048
authored
Oct 17, 2025
by
Tim Geypens
Committed by
GitHub
Oct 17, 2025
Browse files
fall back after failing ldconfig-based lib loading for cuDNN (#2277)
Signed-off-by:
Tim Geypens
<
tim.geypens@gmail.com
>
parent
05dc1e62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
transformer_engine/common/__init__.py
transformer_engine/common/__init__.py
+3
-9
No files found.
transformer_engine/common/__init__.py
View file @
bd380048
...
@@ -252,9 +252,7 @@ def _load_cudnn():
...
@@ -252,9 +252,7 @@ def _load_cudnn():
return
handle
return
handle
# Attempt to locate libcudnn via ldconfig
# Attempt to locate libcudnn via ldconfig
libs
=
subprocess
.
check_output
(
libs
=
subprocess
.
check_output
([
"ldconfig"
,
"-p"
])
f
"ldconfig -p | grep 'libcudnn
{
_get_sys_extension
()
}
'"
,
shell
=
True
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
sos
=
[]
sos
=
[]
for
lib
in
libs
:
for
lib
in
libs
:
...
@@ -284,9 +282,7 @@ def _load_nvrtc():
...
@@ -284,9 +282,7 @@ def _load_nvrtc():
return
handle
return
handle
# Attempt to locate NVRTC via ldconfig
# Attempt to locate NVRTC via ldconfig
libs
=
subprocess
.
check_output
(
libs
=
subprocess
.
check_output
([
"ldconfig"
,
"-p"
])
f
"ldconfig -p | grep 'libnvrtc
{
_get_sys_extension
()
}
'"
,
shell
=
True
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
sos
=
[]
sos
=
[]
for
lib
in
libs
:
for
lib
in
libs
:
...
@@ -316,9 +312,7 @@ def _load_curand():
...
@@ -316,9 +312,7 @@ def _load_curand():
return
handle
return
handle
# Attempt to locate cuRAND via ldconfig
# Attempt to locate cuRAND via ldconfig
libs
=
subprocess
.
check_output
(
libs
=
subprocess
.
check_output
([
"ldconfig"
,
"-p"
])
f
"ldconfig -p | grep 'libcurand
{
_get_sys_extension
()
}
'"
,
shell
=
True
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
libs
=
libs
.
decode
(
"utf-8"
).
split
(
"
\n
"
)
sos
=
[]
sos
=
[]
for
lib
in
libs
:
for
lib
in
libs
:
...
...
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