Skip to content

Commit

Permalink
voxel grid CUDA bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Aug 31, 2018
1 parent 920cc93 commit d85bc4f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions cuda/cluster.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion cuda/grid_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ __global__ void grid_kernel(int64_t *cluster,
for (ptrdiff_t d = 0; d < pos.sizes[1]; d++) {
scalar_t p = pos.data[i * pos.strides[0] + d * pos.strides[1]] - start[d];
c += (int64_t)(p / size[d]) * k;
k += (int64_t)((end[d] - start[d]) / size[d]);
k *= (int64_t)((end[d] - start[d]) / size[d]) + 1;
}
cluster[i] = c;
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
CUDAExtension('grid_cuda', ['cuda/grid.cpp', 'cuda/grid_kernel.cu']),
]

__version__ = '1.1.4'
__version__ = '1.1.5'
url = 'https://github.com/rusty1s/pytorch_cluster'

install_requires = []
Expand Down
2 changes: 1 addition & 1 deletion torch_cluster/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .graclus import graclus_cluster
from .grid import grid_cluster

__version__ = '1.1.4'
__version__ = '1.1.5'

__all__ = ['graclus_cluster', 'grid_cluster', '__version__']

0 comments on commit d85bc4f

Please sign in to comment.