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
dgl
Commits
00c3edc1
Unverified
Commit
00c3edc1
authored
Apr 21, 2023
by
Chang Liu
Committed by
GitHub
Apr 21, 2023
Browse files
[Bugfix] Fix unit test failures on older GPUs (#5579)
parent
c0f346e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/python/common/ops/test_ops.py
tests/python/common/ops/test_ops.py
+10
-0
No files found.
tests/python/common/ops/test_ops.py
View file @
00c3edc1
...
@@ -405,6 +405,16 @@ def test_gather_mm_idx_b(feat_size, dtype, tol):
...
@@ -405,6 +405,16 @@ def test_gather_mm_idx_b(feat_size, dtype, tol):
):
):
pytest
.
skip
(
"BF16 is not supported."
)
pytest
.
skip
(
"BF16 is not supported."
)
if
(
F
.
_default_context_str
==
"gpu"
and
dtype
==
torch
.
float16
and
torch
.
cuda
.
get_device_capability
()
<
(
7
,
0
)
):
pytest
.
skip
(
f
"FP16 is not supported for atomic operations on GPU with "
f
"cuda capability (
{
torch
.
cuda
.
get_device_capability
()
}
)."
)
dev
=
F
.
ctx
()
dev
=
F
.
ctx
()
# input
# input
a
=
torch
.
tensor
(
np
.
random
.
rand
(
100
,
feat_size
)).
to
(
dev
).
to
(
dtype
)
a
=
torch
.
tensor
(
np
.
random
.
rand
(
100
,
feat_size
)).
to
(
dev
).
to
(
dtype
)
...
...
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