Updated review comment

Change-Id: Ic7f9f33dd23c975f2a7a0f0d485a3d2a457c62bb
Tento commit je obsažen v:
Sarbojit Sarkar
2020-12-09 12:32:43 -05:00
odevzdal Sarbojit Sarkar
rodič d074c2491f
revize 7c3b1cca22
2 změnil soubory, kde provedl 129 přidání a 0 odebrání
+15
Zobrazit soubor
@@ -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) {