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
8f9dcabf
Commit
8f9dcabf
authored
Sep 24, 2024
by
sangwzh
Browse files
update device compare
parent
097ed7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/partition/ndarray_partition.cc
src/partition/ndarray_partition.cc
+1
-1
No files found.
src/partition/ndarray_partition.cc
View file @
8f9dcabf
...
...
@@ -107,7 +107,7 @@ class RangePartition : public NDArrayPartition {
// we have only one CPU context, and can safely copy the array to that.
range_cpu_
(
range
.
CopyTo
(
DGLContext
{
kDGLCPU
,
0
}))
{
auto
ctx
=
range
->
ctx
;
if
(
ctx
.
device_type
!=
kDGLCUDA
||
ctx
.
device_type
!=
kDGLROCM
)
{
if
(
ctx
.
device_type
!=
kDGLCUDA
&&
ctx
.
device_type
!=
kDGLROCM
)
{
LOG
(
FATAL
)
<<
"The range for an NDArrayPartition is only supported "
" on GPUs. Transfer the range to the target device before "
"creating the partition."
;
...
...
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