Skip to content

Commit f99e7ff

Browse files
committed
fix installation bug + cpu/cuda unequal output bug
1 parent 234a6ba commit f99e7ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csrc/cuda/radius_cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ __global__ void radius_kernel(const scalar_t *x, const scalar_t *y,
3131
}
3232
dist = sqrt(dist);
3333

34-
if (dist <= radius) {
34+
if (dist < radius) {
3535
row[n_y * max_num_neighbors + count] = n_y;
3636
col[n_y * max_num_neighbors + count] = n_x;
3737
count++;

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_extensions():
5858
sources += [path]
5959

6060
path = osp.join(extensions_dir, 'cuda', f'{name}_cuda.cu')
61-
if WITH_CUDA and osp.exists(path):
61+
if suffix == 'cuda' and osp.exists(path):
6262
sources += [path]
6363

6464
Extension = CppExtension if suffix == 'cpu' else CUDAExtension

0 commit comments

Comments
 (0)