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-cluster
Commits
4f7761ae
Commit
4f7761ae
authored
Mar 12, 2020
by
rusty1s
Browse files
typos
parent
e83a45a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/cuda/nearest_cuda.cu
csrc/cuda/nearest_cuda.cu
+2
-2
No files found.
csrc/cuda/nearest_cuda.cu
View file @
4f7761ae
...
...
@@ -15,7 +15,7 @@ __global__ void nearest_kernel(const scalar_t *x, const scalar_t *y,
const
int64_t
n_x
=
blockIdx
.
x
;
int64_t
batch_idx
;
for
(
int64_t
b
=
0
;
b
<
ptr_x
.
size
(
0
)
-
1
;
b
++
)
for
(
int64_t
b
=
0
;
b
<
batch_size
;
b
++
)
if
(
ptr_x
[
b
]
>=
n_x
and
ptr_x
[
b
+
1
]
<
n_x
)
batch_idx
=
b
;
...
...
@@ -46,7 +46,7 @@ __global__ void nearest_kernel(const scalar_t *x, const scalar_t *y,
for
(
int64_t
u
=
0
;
(
1
<<
u
)
<
THREADS
;
u
++
)
{
__syncthreads
();
if
(
idx
<
(
THREADS
>>
(
u
+
1
)))
{
if
(
thread_
idx
<
(
THREADS
>>
(
u
+
1
)))
{
int64_t
idx_1
=
(
thread_idx
*
2
)
<<
u
;
int64_t
idx_2
=
(
thread_idx
*
2
+
1
)
<<
u
;
if
(
best_dist
[
idx_1
]
>
best_dist
[
idx_2
])
{
...
...
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