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
84e8ce2f
Commit
84e8ce2f
authored
Jul 25, 2025
by
wenjh
Browse files
Merge branch 'develop_v2.4'
parents
cddbbf59
ff1e14af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
transformer_engine/pytorch/utils.py
transformer_engine/pytorch/utils.py
+2
-0
No files found.
transformer_engine/pytorch/utils.py
View file @
84e8ce2f
...
@@ -462,6 +462,8 @@ if IS_HIP_EXTENSION:
...
@@ -462,6 +462,8 @@ if IS_HIP_EXTENSION:
def
use_lightop_w8a8
(
block_size
:
List
[
int
])
->
bool
:
def
use_lightop_w8a8
(
block_size
:
List
[
int
])
->
bool
:
"""Check whether to use lightop for w8a8"""
"""Check whether to use lightop for w8a8"""
# Just return False because lightop is not ready now.
return
False
if
(
enable_lightop
):
if
(
enable_lightop
):
return
get_device_compute_capability
()
>=
(
9
,
3
)
and
block_size
[
1
]
==
128
return
get_device_compute_capability
()
>=
(
9
,
3
)
and
block_size
[
1
]
==
128
else
:
else
:
...
...
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