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
5f463f9b
Commit
5f463f9b
authored
Oct 17, 2024
by
sangwzh
Browse files
update devicetype check in RecordedCopy
parent
28286ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/runtime/ndarray.cc
src/runtime/ndarray.cc
+1
-1
No files found.
src/runtime/ndarray.cc
View file @
5f463f9b
...
@@ -223,7 +223,7 @@ void NDArray::RecordedCopyFromTo(
...
@@ -223,7 +223,7 @@ void NDArray::RecordedCopyFromTo(
CHECK
(
from
->
ctx
.
device_type
!=
to
->
ctx
.
device_type
)
CHECK
(
from
->
ctx
.
device_type
!=
to
->
ctx
.
device_type
)
<<
"Recoding event is only called for the copy between CPU and GPU."
;
<<
"Recoding event is only called for the copy between CPU and GPU."
;
CHECK
(
from
->
ctx
.
device_type
==
kDGLCUDA
||
to
->
ctx
.
device_type
==
kDGLROCM
)
CHECK
(
from
->
ctx
.
device_type
==
kDGLCUDA
||
to
->
ctx
.
device_type
==
kDGLROCM
||
from
->
ctx
.
device_type
==
kDGLROCM
||
to
->
ctx
.
device_type
==
kDGLCUDA
)
<<
"At least one CUDA ctx needs to be involved."
;
<<
"At least one CUDA ctx needs to be involved."
;
DeviceAPI
::
Get
(
kDGLCUDA
)
->
RecordedCopyDataFromTo
(
DeviceAPI
::
Get
(
kDGLCUDA
)
->
RecordedCopyDataFromTo
(
...
...
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