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
dgl
Commits
dc06060b
Unverified
Commit
dc06060b
authored
Jul 14, 2023
by
Muhammed Fatih BALIN
Committed by
GitHub
Jul 14, 2023
Browse files
[CUDA] fixing partition bug (#6001)
parent
02e79a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/partition/cuda/partition_op.cu
src/partition/cuda/partition_op.cu
+4
-4
No files found.
src/partition/cuda/partition_op.cu
View file @
dc06060b
...
...
@@ -329,14 +329,14 @@ std::pair<IdArray, NDArray> GeneratePermutationFromRemainder(
CUDA_CALL
(
cub
::
DeviceHistogram
::
HistogramEven
(
nullptr
,
hist_workspace_size
,
proc_id_out
.
get
(),
reinterpret_cast
<
AtomicCount
*>
(
out_counts
),
num_parts
+
1
,
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
+
1
),
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
),
static_cast
<
int
>
(
num_in
),
stream
));
Workspace
<
void
>
hist_workspace
(
device
,
ctx
,
hist_workspace_size
);
CUDA_CALL
(
cub
::
DeviceHistogram
::
HistogramEven
(
hist_workspace
.
get
(),
hist_workspace_size
,
proc_id_out
.
get
(),
reinterpret_cast
<
AtomicCount
*>
(
out_counts
),
num_parts
+
1
,
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
+
1
),
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
),
static_cast
<
int
>
(
num_in
),
stream
));
}
...
...
@@ -504,14 +504,14 @@ std::pair<IdArray, NDArray> GeneratePermutationFromRange(
CUDA_CALL
(
cub
::
DeviceHistogram
::
HistogramEven
(
nullptr
,
hist_workspace_size
,
proc_id_out
.
get
(),
reinterpret_cast
<
AtomicCount
*>
(
out_counts
),
num_parts
+
1
,
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
+
1
),
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
),
static_cast
<
int
>
(
num_in
),
stream
));
Workspace
<
void
>
hist_workspace
(
device
,
ctx
,
hist_workspace_size
);
CUDA_CALL
(
cub
::
DeviceHistogram
::
HistogramEven
(
hist_workspace
.
get
(),
hist_workspace_size
,
proc_id_out
.
get
(),
reinterpret_cast
<
AtomicCount
*>
(
out_counts
),
num_parts
+
1
,
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
+
1
),
static_cast
<
IdType
>
(
0
),
static_cast
<
IdType
>
(
num_parts
),
static_cast
<
int
>
(
num_in
),
stream
));
}
...
...
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