SWDEV-485866 - Return OOM if stream creation fails due to insufficient memory.
Change-Id: I4e57ecc81921bde274bb6a4e0890f0fc6a17955a
This commit is contained in:
committad av
Jaydeepkumar Patel
förälder
b977101893
incheckning
5ccc140e1b
@@ -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;
|
||||
|
||||
Referens i nytt ärende
Block a user