SWDEV-374403 - Added input sanity checks for hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice
Change-Id: Iebef5ae68439d87549fdf9559de51c6c79c64392
This commit is contained in:
@@ -508,7 +508,11 @@ hipError_t ihipModuleLaunchCooperativeKernelMultiDevice(hipFunctionLaunchParams*
|
||||
hipError_t result = hipSuccess;
|
||||
result = ihipDeviceGetCount(&numActiveGPUs);
|
||||
|
||||
if (numDevices > numActiveGPUs) {
|
||||
if ((numDevices == 0) || (numDevices > numActiveGPUs)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
if ((flags < 0) || (flags > hipCooperativeLaunchMultiDeviceNoPostSync)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user