SWDEV-564927 - Allow sizeBytes to be 0 when hipMemsetAsync is captured (#1849)

Этот коммит содержится в:
vstojilj
2025-11-27 17:13:33 +01:00
коммит произвёл GitHub
родитель 63713f01e0
Коммит 1c09c87cc7
+6
Просмотреть файл
@@ -891,6 +891,12 @@ hipError_t capturehipMemsetAsync(hipStream_t& stream, void*& dst, int& value, si
if (!hip::isValid(stream)) {
return hipErrorContextIsDestroyed;
}
// No work should be done
if (sizeBytes == 0) {
return hipSuccess;
}
hipMemsetParams memsetParams = {0};
memsetParams.dst = dst;
memsetParams.value = value;