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
apex
Commits
05dd9c69
Commit
05dd9c69
authored
Apr 01, 2022
by
Thor Johnsen
Browse files
Bug fix
parent
a5d51c01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
apex/contrib/bottleneck/bottleneck.py
apex/contrib/bottleneck/bottleneck.py
+1
-0
No files found.
apex/contrib/bottleneck/bottleneck.py
View file @
05dd9c69
...
@@ -330,6 +330,7 @@ class SpatialBottleneckFunction(torch.autograd.Function):
...
@@ -330,6 +330,7 @@ class SpatialBottleneckFunction(torch.autograd.Function):
# the first kernel of _forward_rest can launch.
# the first kernel of _forward_rest can launch.
# At least we can overlap the two halo correction kernels.
# At least we can overlap the two halo correction kernels.
if
spatial_group_rank
<
spatial_group_size
-
1
:
if
spatial_group_rank
<
spatial_group_size
-
1
:
stream2
.
wait_stream
(
stream1
)
# wait for halo transfers to finish
stream2
.
wait_stream
(
torch
.
cuda
.
current_stream
())
# wait for *_out2_mask to finish
stream2
.
wait_stream
(
torch
.
cuda
.
current_stream
())
# wait for *_out2_mask to finish
with
torch
.
cuda
.
stream
(
stream2
):
with
torch
.
cuda
.
stream
(
stream2
):
w1by3
=
args
[
2
][:,
2
:
3
,:,:].
clone
()
w1by3
=
args
[
2
][:,
2
:
3
,:,:].
clone
()
...
...
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