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

This commit is contained in:
Arandjelovic, Marko authored and GitHub committed 2025-04-16 10:35:48 +02:00
1 parent 3fd7650fe3
commit 5fe080fd67
1 file changed
+5
+5
View 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;