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
pyg_autoscale
Commits
b4dec6bb
Commit
b4dec6bb
authored
Jul 30, 2021
by
rusty1s
Browse files
fix copy direction
parent
28478862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cuda/async_cuda.cu
csrc/cuda/async_cuda.cu
+1
-1
No files found.
csrc/cuda/async_cuda.cu
View file @
b4dec6bb
...
...
@@ -73,7 +73,7 @@ void read_async_cuda(torch::Tensor src,
AT_ASSERTM
(
dst_offset
+
c
<=
dst
.
size
(
0
),
"Invalid index"
);
cudaMemcpyAsync
(
dst_data
+
(
dst_offset
*
size
),
src_data
+
(
src_offset
*
size
),
c
*
size
*
sizeof
(
scalar_t
),
cudaMemcpyDevice
ToHost
,
stream
);
c
*
size
*
sizeof
(
scalar_t
),
cudaMemcpy
HostTo
Device
,
stream
);
dst_offset
+=
c
;
}
}
...
...
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