Skip to content
Snippets Groups Projects
Commit e4f58810 authored by Tianqi Chen's avatar Tianqi Chen Committed by GitHub
Browse files

[METAL][RUNTIME] Fix bug of memcpy into metal buffer (#428)

parent ab17bf65
No related branches found
No related tags found
No related merge requests found
......@@ -205,6 +205,7 @@ void MetalWorkspace::CopyDataFromTo(const void* from,
size:size];
[encoder endEncoding];
[cb commit];
[cb waitUntilCompleted];
} else {
memcpy(static_cast<char*>([to_buf contents]) + to_offset,
static_cast<const char*>(from) + from_offset,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment