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
f99e7ffb
"...python/git@developer.sourcefind.cn:change/sglang.git" did not exist on "ecc9f3e47abd8fa1a23020a91b4a50088fd3c060"
Commit
f99e7ffb
authored
Feb 26, 2021
by
rusty1s
Browse files
fix installation bug + cpu/cuda unequal output bug
parent
234a6ba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
csrc/cuda/radius_cuda.cu
csrc/cuda/radius_cuda.cu
+1
-1
setup.py
setup.py
+1
-1
No files found.
csrc/cuda/radius_cuda.cu
View file @
f99e7ffb
...
@@ -31,7 +31,7 @@ __global__ void radius_kernel(const scalar_t *x, const scalar_t *y,
...
@@ -31,7 +31,7 @@ __global__ void radius_kernel(const scalar_t *x, const scalar_t *y,
}
}
dist
=
sqrt
(
dist
);
dist
=
sqrt
(
dist
);
if
(
dist
<
=
radius
)
{
if
(
dist
<
radius
)
{
row
[
n_y
*
max_num_neighbors
+
count
]
=
n_y
;
row
[
n_y
*
max_num_neighbors
+
count
]
=
n_y
;
col
[
n_y
*
max_num_neighbors
+
count
]
=
n_x
;
col
[
n_y
*
max_num_neighbors
+
count
]
=
n_x
;
count
++
;
count
++
;
...
...
setup.py
View file @
f99e7ffb
...
@@ -58,7 +58,7 @@ def get_extensions():
...
@@ -58,7 +58,7 @@ def get_extensions():
sources
+=
[
path
]
sources
+=
[
path
]
path
=
osp
.
join
(
extensions_dir
,
'cuda'
,
f
'
{
name
}
_cuda.cu'
)
path
=
osp
.
join
(
extensions_dir
,
'cuda'
,
f
'
{
name
}
_cuda.cu'
)
if
WITH_CUDA
and
osp
.
exists
(
path
):
if
suffix
==
'cuda'
and
osp
.
exists
(
path
):
sources
+=
[
path
]
sources
+=
[
path
]
Extension
=
CppExtension
if
suffix
==
'cpu'
else
CUDAExtension
Extension
=
CppExtension
if
suffix
==
'cpu'
else
CUDAExtension
...
...
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