Skip to content

Commit a71187e

Browse files
authored
[Offload] Return error rather than dropping it (#148609)
1 parent eb4de57 commit a71187e

File tree

1 file changed

+1
-1
lines changed
  • offload/plugins-nextgen/cuda/src

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/cuda/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ Error CUDAKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
13111311
if (MaxDynCGroupMem >= MaxDynCGroupMemLimit) {
13121312
CUresult AttrResult = cuFuncSetAttribute(
13131313
Func, CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES, MaxDynCGroupMem);
1314-
Plugin::check(
1314+
return Plugin::check(
13151315
AttrResult,
13161316
"Error in cuLaunchKernel while setting the memory limits: %s");
13171317
MaxDynCGroupMemLimit = MaxDynCGroupMem;

0 commit comments

Comments
 (0)