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

Dieser Commit ist enthalten in:
vstojilj verfasst und GitHub committed 2025-11-27 17:13:33 +01:00
1 Ursprung 63713f01e0
Commit 1c09c87cc7
1 Datei geändert
+6
+6
Datei anzeigen
@@ -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;