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>
This commit is contained in:
systems-assistant[bot]
2025-09-17 08:33:59 -07:00
committed by GitHub
parent e655bb37a7
commit 0018a4e70c
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -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