@@ -176,17 +176,6 @@ ur_result_t ur_program_handle_t_::getGlobalVariablePointer(
176
176
return UR_RESULT_SUCCESS;
177
177
}
178
178
179
- // / Finds kernel names by searching for entry points in the PTX source, as the
180
- // / CUDA driver API doesn't expose an operation for this.
181
- // / Note: This is currently only being used by the SYCL program class for the
182
- // / has_kernel method, so an alternative would be to move the has_kernel
183
- // / query to UR and use cuModuleGetFunction to check for a kernel.
184
- // / Note: Another alternative is to add kernel names as metadata, like with
185
- // / reqd_work_group_size.
186
- ur_result_t getKernelNames (ur_program_handle_t ) {
187
- return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
188
- }
189
-
190
179
// / Loads images from a list of PTX or CUBIN binaries.
191
180
// / Note: No calls to CUDA driver API in this function, only store binaries
192
181
// / for later.
@@ -421,8 +410,9 @@ urProgramGetInfo(ur_program_handle_t hProgram, ur_program_info_t propName,
421
410
case UR_PROGRAM_INFO_BINARIES:
422
411
return ReturnValue (&hProgram->Binary , 1 );
423
412
case UR_PROGRAM_INFO_KERNEL_NAMES:
424
- /* TODO: Add implementation for getKernelNames */
425
- UR_ASSERT (getKernelNames (hProgram), UR_RESULT_ERROR_UNSUPPORTED_FEATURE);
413
+ // CUDA has no way to query a list of kernels from a binary.
414
+ // In SYCL this is only used in kernel bundle when building from source
415
+ // which isn't currently supported for CUDA.
426
416
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
427
417
case UR_PROGRAM_INFO_NUM_KERNELS:
428
418
case UR_PROGRAM_INFO_IL:
0 commit comments