Commit e5f34a12 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 5f98eee4
......@@ -5,10 +5,10 @@ template <typename scalar_t>
__global__ void grid_cuda_kernel(
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__ end, const size_t n) {
const scalar_t *__restrict__ end, const size_t num_nodes) {
const size_t index = blockIdx.x * blockDim.x + threadIdx.x;
const size_t stride = blockDim.x * gridDim.x;
for (ptrdiff_t i = index; i < n; i += stride) {
for (ptrdiff_t i = index; i < num_nodes; i += stride) {
int64_t c = 0, k = 1;
scalar_t tmp;
for (ptrdiff_t d = 0; d < pos.sizes[1]; d++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment