SWDEV-256325 : Fix for hipMemset2D crash
Change-Id: I1f434602fecd4fb935d2bc72f2c72d6a2d4c45fe
Tento commit je obsažen v:
odevzdal
Sarbojit Sarkar
rodič
3979d063a1
revize
a73d1a1fe0
@@ -1855,6 +1855,10 @@ hipError_t ihipMemset3D(hipPitchedPtr pitchedDevPtr,
|
||||
|
||||
auto sizeBytes = extent.width * extent.height * extent.depth;
|
||||
|
||||
if (sizeBytes == 0) {
|
||||
// sizeBytes is zero hence returning early as nothing to be set
|
||||
return hipSuccess;
|
||||
}
|
||||
if (memory == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele