SWDEV-523137 - function ptrs should match across all devices (#171)

This commit is contained in:
Arandjelovic, Marko
2025-04-16 10:35:48 +02:00
committato da GitHub
parent 3fd7650fe3
commit 5fe080fd67
+5
Vedi File
@@ -877,6 +877,11 @@ hipError_t ihipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsL
return hipErrorInvalidDeviceFunction;
}
// functions should match across all devices
if (i > 0 && launch.func != launchParamsList[i - 1].func) {
return hipErrorInvalidValue;
}
functionLaunchParamsList[i].function = func;
functionLaunchParamsList[i].gridDimX = launch.gridDim.x;
functionLaunchParamsList[i].gridDimY = launch.gridDim.y;