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
0d251991
Unverified
Commit
0d251991
authored
May 16, 2023
by
Frédéric Bastien
Committed by
GitHub
May 16, 2023
Browse files
WAR a JAX issue (#221)
Signed-off-by:
Frederic Bastien
<
fbastien@nvidia.com
>
parent
b20c0531
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
transformer_engine/jax/fp8.py
transformer_engine/jax/fp8.py
+3
-3
No files found.
transformer_engine/jax/fp8.py
View file @
0d251991
...
@@ -46,9 +46,9 @@ def is_fp8_available(gpu_id=None) -> Tuple[bool, str]:
...
@@ -46,9 +46,9 @@ def is_fp8_available(gpu_id=None) -> Tuple[bool, str]:
global
_is_fp8_available
,
_reason_for_no_fp8
global
_is_fp8_available
,
_reason_for_no_fp8
if
_is_fp8_available
is
None
:
if
_is_fp8_available
is
None
:
_is_fp8_available
=
True
_is_fp8_available
=
True
devices
=
jax
.
local_devices
()
# JAX doesn't provide the local GPU id.
for
gpu
in
devices
:
for
local_gpu_id
in
range
(
len
(
jax
.
local_
devices
()))
:
ret
,
msg
=
_check_fp8_support
(
gpu
.
id
)
ret
,
msg
=
_check_fp8_support
(
local_
gpu
_
id
)
if
ret
is
False
:
if
ret
is
False
:
_is_fp8_available
=
ret
_is_fp8_available
=
ret
_reason_for_no_fp8
=
msg
_reason_for_no_fp8
=
msg
...
...
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