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
MMCV
Commits
59b0fb60
Commit
59b0fb60
authored
Aug 10, 2022
by
xiabo
Browse files
mmcv编译不过修改
parent
f7e64e20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
+5
-1
No files found.
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
View file @
59b0fb60
...
@@ -78,7 +78,11 @@ __global__ void correlation_forward_cuda_kernel(
...
@@ -78,7 +78,11 @@ __global__ void correlation_forward_cuda_kernel(
}
}
// accumulate
// accumulate
for
(
int
offset
=
16
;
offset
>
0
;
offset
/=
2
)
for
(
int
offset
=
16
;
offset
>
0
;
offset
/=
2
)
prod_sum
+=
__shfl_down_sync
(
FULL_MASK
,
float
(
prod_sum
),
offset
);
#ifdef HIP_DIFF
prod_sum
+=
__shfl_down
(
FULL_MASK
,
prod_sum
,
offset
);
#else
prod_sum
+=
__shfl_down_sync
(
FULL_MASK
,
float
(
prod_sum
),
offset
);
#endif
if
(
thread
==
0
)
{
if
(
thread
==
0
)
{
output
[
n
][
ph
][
pw
][
h
][
w
]
=
prod_sum
;
output
[
n
][
ph
][
pw
][
h
][
w
]
=
prod_sum
;
}
}
...
...
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