Skip to content

Commit c6dadf9

Browse files
committed
Return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION for hip and cuda
1 parent 1c611ed commit c6dadf9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/adapters/cuda/kernel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel,
300300
return ReturnValue(static_cast<uint32_t>(NumRegs));
301301
}
302302
case UR_KERNEL_INFO_SPILL_MEM_SIZE:
303+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
303304
default:
304305
break;
305306
}

source/adapters/hip/kernel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel,
235235
return ReturnValue(static_cast<uint32_t>(NumRegs));
236236
}
237237
case UR_KERNEL_INFO_SPILL_MEM_SIZE:
238+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
238239
default:
239240
break;
240241
}

0 commit comments

Comments
 (0)