SWDEV-266973 - Add missing HIP_RETURN

Change-Id: Ib569a8cb030179b71406d47fd08c7e1e7ab6eb7c


[ROCm/hip commit: 429b4ffd1f]
This commit is contained in:
Rahul Garg
2021-01-06 19:40:41 +00:00
parent 60547b8830
commit b9bae02fa1
+3 -3
View File
@@ -631,16 +631,16 @@ hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsLi
{ {
HIP_INIT_API(hipLaunchCooperativeKernelMultiDevice, launchParamsList, numDevices, flags); HIP_INIT_API(hipLaunchCooperativeKernelMultiDevice, launchParamsList, numDevices, flags);
return ihipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags, return HIP_RETURN(ihipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags,
(amd::NDRangeKernelCommand::CooperativeGroups | (amd::NDRangeKernelCommand::CooperativeGroups |
amd::NDRangeKernelCommand::CooperativeMultiDeviceGroups)); amd::NDRangeKernelCommand::CooperativeMultiDeviceGroups)));
} }
hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList, hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList,
int numDevices, unsigned int flags) { int numDevices, unsigned int flags) {
HIP_INIT_API(hipExtLaunchMultiKernelMultiDevice, launchParamsList, numDevices, flags); HIP_INIT_API(hipExtLaunchMultiKernelMultiDevice, launchParamsList, numDevices, flags);
return ihipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags, 0); return HIP_RETURN(ihipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags, 0));
} }
hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const char* name) { hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const char* name) {