SWDEV-485866 - Return OOM if stream creation fails due to insufficient memory.

Change-Id: I4e57ecc81921bde274bb6a4e0890f0fc6a17955a
This commit is contained in:
Jaydeep Patel
2024-09-19 06:59:43 +00:00
committad av Jaydeepkumar Patel
förälder b977101893
incheckning 5ccc140e1b
4 ändrade filer med 11 tillägg och 3 borttagningar
+1
Visa fil
@@ -3328,6 +3328,7 @@ hipError_t ihipMemset(void* dst, int64_t value, size_t valueSize, size_t sizeByt
}
std::vector<amd::Command*> commands;
hip::Stream* hip_stream = hip::getStream(stream);
if (hip_stream == nullptr) { return hipErrorOutOfMemory; }
hip_error = ihipMemsetCommand(commands, dst, value, valueSize, sizeBytes, hip_stream);
if (hip_error != hipSuccess) {
break;