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
26612d0c
Unverified
Commit
26612d0c
authored
Dec 02, 2022
by
Xin Yao
Committed by
GitHub
Dec 02, 2022
Browse files
[Fix] Fix record_stream for PyTorch 1.14 (#4975)
parent
943abba3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tensoradapter/pytorch/torch.cpp
tensoradapter/pytorch/torch.cpp
+1
-1
No files found.
tensoradapter/pytorch/torch.cpp
View file @
26612d0c
...
@@ -41,7 +41,7 @@ TA_EXPORTS cudaStream_t CUDACurrentStream() {
...
@@ -41,7 +41,7 @@ TA_EXPORTS cudaStream_t CUDACurrentStream() {
TA_EXPORTS
void
RecordStream
(
void
*
ptr
,
cudaStream_t
stream
,
int
device_id
)
{
TA_EXPORTS
void
RecordStream
(
void
*
ptr
,
cudaStream_t
stream
,
int
device_id
)
{
c10
::
DataPtr
data_ptr
{
c10
::
DataPtr
data_ptr
{
ptr
,
ptr
,
&
c10
::
cuda
::
CUDACachingAllocator
::
raw_delete
,
ptr
,
ptr
,
c10
::
cuda
::
CUDACachingAllocator
::
get
()
->
raw_delete
r
()
,
c10
::
Device
(
c10
::
DeviceType
::
CUDA
,
device_id
)};
c10
::
Device
(
c10
::
DeviceType
::
CUDA
,
device_id
)};
c10
::
cuda
::
CUDACachingAllocator
::
recordStream
(
c10
::
cuda
::
CUDACachingAllocator
::
recordStream
(
data_ptr
,
data_ptr
,
...
...
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