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
32fec198
Commit
32fec198
authored
Aug 16, 2022
by
xiabo
Browse files
Include is missing an increase
parent
59b0fb60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmcv/ops/csrc/common/cuda/carafe_cuda_kernel.cuh
mmcv/ops/csrc/common/cuda/carafe_cuda_kernel.cuh
+1
-1
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
+1
-1
No files found.
mmcv/ops/csrc/common/cuda/carafe_cuda_kernel.cuh
View file @
32fec198
...
...
@@ -56,7 +56,7 @@ template <>
__device__
__forceinline__
phalf
warpReduceSum
(
phalf
val
)
{
for
(
int
offset
=
WARP_SIZE
/
2
;
offset
>
0
;
offset
/=
2
)
#ifdef HIP_DIFF
__PHALF
(
val
)
+=
__shfl_down
(
FULL_MASK
,
val
,
offset
);
__PHALF
(
val
)
+=
__shfl_down
(
val
,
offset
);
#else
__PHALF
(
val
)
+=
__shfl_down_sync
(
FULL_MASK
,
static_cast
<
__half
>
(
__PHALF
(
val
)),
offset
);
...
...
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
View file @
32fec198
...
...
@@ -79,7 +79,7 @@ __global__ void correlation_forward_cuda_kernel(
// accumulate
for
(
int
offset
=
16
;
offset
>
0
;
offset
/=
2
)
#ifdef HIP_DIFF
prod_sum
+=
__shfl_down
(
FULL_MASK
,
prod_sum
,
offset
);
prod_sum
+=
__shfl_down
(
float
(
prod_sum
)
,
offset
);
#else
prod_sum
+=
__shfl_down_sync
(
FULL_MASK
,
float
(
prod_sum
),
offset
);
#endif
...
...
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