We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f31d4 commit 7de50beCopy full SHA for 7de50be
offload/plugins-nextgen/cuda/src/rtl.cpp
@@ -1317,9 +1317,10 @@ Error CUDAKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
1317
if (MaxDynCGroupMem >= MaxDynCGroupMemLimit) {
1318
CUresult AttrResult = cuFuncSetAttribute(
1319
Func, CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES, MaxDynCGroupMem);
1320
- return Plugin::check(
1321
- AttrResult,
1322
- "Error in cuLaunchKernel while setting the memory limits: %s");
+ if (auto Err = Plugin::check(
+ AttrResult,
+ "Error in cuLaunchKernel while setting the memory limits: %s"))
1323
+ return Err;
1324
MaxDynCGroupMemLimit = MaxDynCGroupMem;
1325
}
1326
0 commit comments