SWDEV-547453 Release the kernel command if the operation returns an error (#807)

* SWDEV-547453 Release the kernel command if the operation returns an error

* SWDEV-547453 - Initialize parameters_ to default value

* SWDEV-547453 - Run clang-format

[ROCm/clr commit: a15957fee9]
이 커밋은 다음에 포함됨:
Arandjelovic, Marko
2025-08-14 20:08:53 +02:00
커밋한 사람 GitHub
부모 5775e9202b
커밋 208d124f54
2개의 변경된 파일과 16개의 추가작업 그리고 14개의 파일을 삭제
+1
파일 보기
@@ -380,6 +380,7 @@ hipError_t ihipLaunchKernelCommand(amd::Command*& command, hipFunction_t f,
assert(kernelParams == nullptr);
if (extra[0] != HIP_LAUNCH_PARAM_BUFFER_POINTER || extra[2] != HIP_LAUNCH_PARAM_BUFFER_SIZE ||
extra[4] != HIP_LAUNCH_PARAM_END) {
kernelCommand->release();
return hipErrorInvalidValue;
}
kernargs = reinterpret_cast<address>(extra[1]);