SWDEV-541623 - cuda parity hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice (#415)

* SWDEV-541623 - cuda parity hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice

numDevices does not match the system devices

* SWDEV-541623 -  enable Unit_hipExtLaunchMultiKernelMultiDevice_Negative_MultiKernelSameDevice

---------

Co-authored-by: agunashe <ajay.gunashekar@amd.com>
Este commit está contenido en:
systems-assistant[bot]
2025-09-17 08:33:59 -07:00
cometido por GitHub
padre e655bb37a7
commit 0018a4e70c
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
+4 -1
Ver fichero
@@ -912,9 +912,12 @@ hipError_t hipLaunchCooperativeKernel_spt(const void* f, dim3 gridDim, dim3 bloc
hipError_t ihipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsList, int numDevices,
unsigned int flags, uint32_t extFlags) {
if (launchParamsList == nullptr || numDevices > g_devices.size()) {
if (launchParamsList == nullptr) {
return hipErrorInvalidValue;
}
if (numDevices > g_devices.size()) {
return hipErrorInvalidDevice;
}
std::vector<hipFunctionLaunchParams> functionLaunchParamsList(numDevices);
// Convert hipLaunchParams to hipFunctionLaunchParams