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
deepspeed
Commits
1ebcd6c5
Unverified
Commit
1ebcd6c5
authored
Sep 02, 2020
by
Jeff Rasley
Committed by
GitHub
Sep 02, 2020
Browse files
Update test_sparse_attention.py
parent
1661e830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/unit/test_sparse_attention.py
tests/unit/test_sparse_attention.py
+1
-0
No files found.
tests/unit/test_sparse_attention.py
View file @
1ebcd6c5
...
@@ -232,6 +232,7 @@ def init_softmax_inputs(Z, H, M, N, scale, rho, block, dtype, dense_x=True, layo
...
@@ -232,6 +232,7 @@ def init_softmax_inputs(Z, H, M, N, scale, rho, block, dtype, dense_x=True, layo
def
_skip_on_cuda_compatability
():
def
_skip_on_cuda_compatability
():
pytest
.
skip
(
"Skip these tests for now until we get our docker image fixed."
)
if
torch
.
cuda
.
get_device_capability
()[
0
]
!=
7
:
if
torch
.
cuda
.
get_device_capability
()[
0
]
!=
7
:
pytest
.
skip
(
"needs compute capability 7; v100"
)
pytest
.
skip
(
"needs compute capability 7; v100"
)
cuda_major
=
int
(
torch
.
version
.
cuda
.
split
(
'.'
)[
0
])
*
10
cuda_major
=
int
(
torch
.
version
.
cuda
.
split
(
'.'
)[
0
])
*
10
...
...
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