SWDEV-485866 - Return OOM if stream creation fails due to insufficient memory.
Change-Id: I4e57ecc81921bde274bb6a4e0890f0fc6a17955a
[ROCm/clr commit: 5ccc140e1b]
This commit is contained in:
1 förälder
da59165313
incheckning
7983801b0c
4 files changed
+11
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user