SWDEV-465220 - Validate stream on which Kernel is planned to be launched.

Change-Id: I34c679bd888c275584c11ad3e8346d4d542976f9


[ROCm/clr commit: b0047d690a]
Cette révision appartient à :
Jaydeep Patel a créé et Jaydeepkumar Patel a révisé 2024-08-06 00:31:22 -04:00
1 Parent 2aafd5a30c
révision 82474ca1db
2 fichiers modifiés
+4 -1

Aucun fichier ne correspond à votre recherche

+3
Voir le fichier
@@ -606,6 +606,9 @@ hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks,
hipError_t ihipLaunchKernel(const void* hostFunction, dim3 gridDim, dim3 blockDim, void** args,
size_t sharedMemBytes, hipStream_t stream, hipEvent_t startEvent,
hipEvent_t stopEvent, int flags) {
if (!hip::isValid(stream)) {
return hipErrorInvalidValue;
}
hipFunction_t func = nullptr;
int deviceId = hip::Stream::DeviceId(stream);
hipError_t hip_error = PlatformState::instance().getStatFunc(&func, hostFunction, deviceId);