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
e5f34a12
Commit
e5f34a12
authored
May 01, 2018
by
rusty1s
Browse files
typo
parent
5f98eee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
aten/cuda/cluster_kernel.cu
aten/cuda/cluster_kernel.cu
+2
-2
No files found.
aten/cuda/cluster_kernel.cu
View file @
e5f34a12
...
@@ -5,10 +5,10 @@ template <typename scalar_t>
...
@@ -5,10 +5,10 @@ template <typename scalar_t>
__global__
void
grid_cuda_kernel
(
__global__
void
grid_cuda_kernel
(
int64_t
*
cluster
,
const
at
::
cuda
::
detail
::
TensorInfo
<
scalar_t
,
int
>
pos
,
int64_t
*
cluster
,
const
at
::
cuda
::
detail
::
TensorInfo
<
scalar_t
,
int
>
pos
,
const
scalar_t
*
__restrict__
size
,
const
scalar_t
*
__restrict__
start
,
const
scalar_t
*
__restrict__
size
,
const
scalar_t
*
__restrict__
start
,
const
scalar_t
*
__restrict__
end
,
const
size_t
n
)
{
const
scalar_t
*
__restrict__
end
,
const
size_t
n
um_nodes
)
{
const
size_t
index
=
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
;
const
size_t
index
=
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
;
const
size_t
stride
=
blockDim
.
x
*
gridDim
.
x
;
const
size_t
stride
=
blockDim
.
x
*
gridDim
.
x
;
for
(
ptrdiff_t
i
=
index
;
i
<
n
;
i
+=
stride
)
{
for
(
ptrdiff_t
i
=
index
;
i
<
n
um_nodes
;
i
+=
stride
)
{
int64_t
c
=
0
,
k
=
1
;
int64_t
c
=
0
,
k
=
1
;
scalar_t
tmp
;
scalar_t
tmp
;
for
(
ptrdiff_t
d
=
0
;
d
<
pos
.
sizes
[
1
];
d
++
)
{
for
(
ptrdiff_t
d
=
0
;
d
<
pos
.
sizes
[
1
];
d
++
)
{
...
...
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