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
torch-scatter
Commits
4d7b32c5
Commit
4d7b32c5
authored
Dec 29, 2019
by
rusty1s
Browse files
assertions
parent
9b68396b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cuda/segment_kernel.cu
cuda/segment_kernel.cu
+3
-2
No files found.
cuda/segment_kernel.cu
View file @
4d7b32c5
...
@@ -151,8 +151,9 @@ __global__ void segment_add_coo_kernel(const scalar_t *src_data,
...
@@ -151,8 +151,9 @@ __global__ void segment_add_coo_kernel(const scalar_t *src_data,
#pragma unroll
#pragma unroll
for
(
int
offset
=
1
;
offset
<
TB
;
offset
*=
2
)
{
for
(
int
offset
=
1
;
offset
<
TB
;
offset
*=
2
)
{
tmp
=
__shfl_up_sync
(
FULL_MASK
,
val
,
offset
);
tmp
=
__shfl_up_sync
(
FULL_MASK
,
val
,
offset
);
if
(
lane_idx
>=
offset
&&
int
idx_next
=
__ldg
(
index_data
+
thread_idx
-
offset
);
idx
==
__ldg
(
index_data
+
thread_idx
-
offset
))
{
// AT_ASSERTM(lane_idx < offset || idx <= idx_next);
if
(
lane_idx
>=
offset
&&
idx
==
idx_next
)
{
val
+=
tmp
;
val
+=
tmp
;
}
}
}
}
...
...
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