Skip to content

Commit f349305

Browse files
committed
"Implement" NUM_KERNELS + KERNEL_NAMES
Now all program info is implemented
1 parent 911fa71 commit f349305

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

unified-runtime/source/adapters/offload/program.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,13 @@ urProgramGetInfo(ur_program_handle_t hProgram, ur_program_info_t propName,
190190
}
191191
break;
192192
}
193-
default:
193+
case UR_PROGRAM_INFO_NUM_KERNELS:
194+
case UR_PROGRAM_INFO_KERNEL_NAMES:
195+
// Program introspection is not available for liboffload (or generally,
196+
// amdgpu/cuda)
194197
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
198+
default:
199+
return UR_RESULT_ERROR_INVALID_ENUMERATION;
195200
}
196201

197202
return UR_RESULT_SUCCESS;

0 commit comments

Comments
 (0)