Updated review comment

Change-Id: Ic7f9f33dd23c975f2a7a0f0d485a3d2a457c62bb
此提交包含在:
Sarbojit Sarkar authored and Sarbojit Sarkar committed 2020-12-13 11:30:28 -05:00
1 父節點 a7aa84f73a
當前提交 1ef88375c2
2 file changed
+129

No files matched your search

+15
查看文件
@@ -1098,6 +1098,11 @@ hipError_t ihipMemcpyDtoD(void* srcDevice,
return hipErrorOutOfMemory;
}
if (!command->validatePeerMemory()) {
delete command;
return hipErrorInvalidValue;
}
hipError_t status = hipSuccess;
command->enqueue();
if (!isAsync) {
@@ -1160,6 +1165,11 @@ hipError_t ihipMemcpyDtoH(void* srcDevice,
return hipErrorOutOfMemory;
}
if (!command->validatePeerMemory()) {
delete command;
return hipErrorInvalidValue;
}
hipError_t status = hipSuccess;
command->enqueue();
if (!isAsync) {
@@ -1222,6 +1232,11 @@ hipError_t ihipMemcpyHtoD(const void* srcHost,
return hipErrorOutOfMemory;
}
if (!command->validatePeerMemory()) {
delete command;
return hipErrorInvalidValue;
}
hipError_t status = hipSuccess;
command->enqueue();
if (!isAsync) {