@@ -436,6 +436,17 @@ typedef enum ur_platform_info_t {
436
436
/// + `NULL == hPlatform`
437
437
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
438
438
/// + `::UR_PLATFORM_INFO_BACKEND < propName`
439
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
440
+ /// + If `propName` is not supported by the adapter.
441
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
442
+ /// + `propSize == 0 && pPropValue != NULL`
443
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
444
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
445
+ /// + `propSize != 0 && pPropValue == NULL`
446
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
447
+ /// - ::UR_RESULT_ERROR_INVALID_PLATFORM
448
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
449
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
439
450
UR_APIEXPORT ur_result_t UR_APICALL
440
451
urPlatformGetInfo (
441
452
ur_platform_handle_t hPlatform , ///< [in] handle of the platform
@@ -446,7 +457,7 @@ urPlatformGetInfo(
446
457
///< If Size is not equal to or greater to the real number of bytes needed
447
458
///< to return the info then the ::UR_RESULT_ERROR_INVALID_SIZE error is
448
459
///< returned and pPlatformInfo is not used.
449
- size_t * pSizeRet ///< [out][optional] pointer to the actual number of bytes being queried by pPlatformInfo.
460
+ size_t * pPropSizeRet ///< [out][optional] pointer to the actual number of bytes being queried by pPlatformInfo.
450
461
);
451
462
452
463
///////////////////////////////////////////////////////////////////////////////
@@ -937,8 +948,17 @@ typedef enum ur_device_info_t {
937
948
/// + `NULL == hDevice`
938
949
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
939
950
/// + `::UR_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP < propName`
951
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
940
952
/// + If `propName` is not supported by the adapter.
941
- /// - ::UR_RESULT_ERROR_INVALID_VALUE
953
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
954
+ /// + `propSize == 0 && pPropValue != NULL`
955
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
956
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
957
+ /// + `propSize != 0 && pPropValue == NULL`
958
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
959
+ /// - ::UR_RESULT_ERROR_INVALID_DEVICE
960
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
961
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
942
962
UR_APIEXPORT ur_result_t UR_APICALL
943
963
urDeviceGetInfo (
944
964
ur_device_handle_t hDevice , ///< [in] handle of the device instance
@@ -948,7 +968,7 @@ urDeviceGetInfo(
948
968
///< the info.
949
969
///< If propSize is not equal to or greater than the real number of bytes
950
970
///< needed to return the info
951
- ///< then the ::UR_RESULT_ERROR_INVALID_VALUE error is returned and
971
+ ///< then the ::UR_RESULT_ERROR_INVALID_SIZE error is returned and
952
972
///< pPropValue is not used.
953
973
size_t * pPropSizeRet ///< [out][optional] pointer to the actual size in bytes of the queried propName.
954
974
);
@@ -1522,6 +1542,17 @@ urContextRelease(
1522
1542
/// + `NULL == hContext`
1523
1543
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
1524
1544
/// + `::UR_CONTEXT_INFO_ATOMIC_FENCE_SCOPE_CAPABILITIES < propName`
1545
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
1546
+ /// + If `propName` is not supported by the adapter.
1547
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1548
+ /// + `propSize == 0 && pPropValue != NULL`
1549
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
1550
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
1551
+ /// + `propSize != 0 && pPropValue == NULL`
1552
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
1553
+ /// - ::UR_RESULT_ERROR_INVALID_CONTEXT
1554
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
1555
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
1525
1556
UR_APIEXPORT ur_result_t UR_APICALL
1526
1557
urContextGetInfo (
1527
1558
ur_context_handle_t hContext , ///< [in] handle of the context
@@ -2116,6 +2147,17 @@ urMemImageCreateWithNativeHandle(
2116
2147
/// + `NULL == hMemory`
2117
2148
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
2118
2149
/// + `::UR_MEM_INFO_CONTEXT < propName`
2150
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
2151
+ /// + If `propName` is not supported by the adapter.
2152
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
2153
+ /// + `propSize == 0 && pPropValue != NULL`
2154
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
2155
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
2156
+ /// + `propSize != 0 && pPropValue == NULL`
2157
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
2158
+ /// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT
2159
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
2160
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
2119
2161
UR_APIEXPORT ur_result_t UR_APICALL
2120
2162
urMemGetInfo (
2121
2163
ur_mem_handle_t hMemory , ///< [in] handle to the memory object being queried.
@@ -2316,15 +2358,17 @@ urSamplerRelease(
2316
2358
/// + `NULL == hSampler`
2317
2359
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
2318
2360
/// + `::UR_SAMPLER_INFO_FILTER_MODE < propName`
2319
- /// - ::UR_RESULT_ERROR_INVALID_SAMPLER
2320
- /// - ::UR_RESULT_ERROR_INVALID_VALUE
2321
- /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
2322
- /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
2361
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
2362
+ /// + If `propName` is not supported by the adapter.
2323
2363
/// - ::UR_RESULT_ERROR_INVALID_SIZE
2324
2364
/// + `propSize == 0 && pPropValue != NULL`
2365
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
2325
2366
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
2326
2367
/// + `propSize != 0 && pPropValue == NULL`
2327
2368
/// + `pPropValue == NULL && pPropSizeRet == NULL`
2369
+ /// - ::UR_RESULT_ERROR_INVALID_SAMPLER
2370
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
2371
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
2328
2372
UR_APIEXPORT ur_result_t UR_APICALL
2329
2373
urSamplerGetInfo (
2330
2374
ur_sampler_handle_t hSampler , ///< [in] handle of the sampler object
@@ -2841,7 +2885,15 @@ typedef enum ur_usm_pool_info_t {
2841
2885
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
2842
2886
/// + `NULL == pPropValue`
2843
2887
/// + `NULL == pPropSizeRet`
2844
- /// - ::UR_RESULT_ERROR_INVALID_VALUE
2888
+ /// + `propSize != 0 && pPropValue == NULL`
2889
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
2890
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
2891
+ /// + If `propName` is not supported by the adapter.
2892
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
2893
+ /// + `propSize == 0 && pPropValue != NULL`
2894
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
2895
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
2896
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
2845
2897
UR_APIEXPORT ur_result_t UR_APICALL
2846
2898
urUSMPoolGetInfo (
2847
2899
ur_usm_pool_handle_t hPool , ///< [in] handle of the USM memory pool
@@ -3202,6 +3254,17 @@ typedef enum ur_program_info_t {
3202
3254
/// + `NULL == hProgram`
3203
3255
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
3204
3256
/// + `::UR_PROGRAM_INFO_KERNEL_NAMES < propName`
3257
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
3258
+ /// + If `propName` is not supported by the adapter.
3259
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
3260
+ /// + `propSize == 0 && pPropValue != NULL`
3261
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
3262
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
3263
+ /// + `propSize != 0 && pPropValue == NULL`
3264
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
3265
+ /// - ::UR_RESULT_ERROR_INVALID_PROGRAM
3266
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3267
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
3205
3268
UR_APIEXPORT ur_result_t UR_APICALL
3206
3269
urProgramGetInfo (
3207
3270
ur_program_handle_t hProgram , ///< [in] handle of the Program object
@@ -3563,6 +3626,17 @@ typedef enum ur_kernel_exec_info_t {
3563
3626
/// + `NULL == hKernel`
3564
3627
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
3565
3628
/// + `::UR_KERNEL_INFO_NUM_REGS < propName`
3629
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
3630
+ /// + If `propName` is not supported by the adapter.
3631
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
3632
+ /// + `propSize == 0 && pPropValue != NULL`
3633
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
3634
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
3635
+ /// + `propSize != 0 && pPropValue == NULL`
3636
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
3637
+ /// - ::UR_RESULT_ERROR_INVALID_KERNEL
3638
+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3639
+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
3566
3640
UR_APIEXPORT ur_result_t UR_APICALL
3567
3641
urKernelGetInfo (
3568
3642
ur_kernel_handle_t hKernel , ///< [in] handle of the Kernel object
@@ -3948,8 +4022,15 @@ typedef enum ur_queue_flag_t {
3948
4022
/// + `NULL == hQueue`
3949
4023
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
3950
4024
/// + `::UR_QUEUE_INFO_EMPTY < propName`
4025
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
4026
+ /// + If `propName` is not supported by the adapter.
4027
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
4028
+ /// + `propSize == 0 && pPropValue != NULL`
4029
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
4030
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
4031
+ /// + `propSize != 0 && pPropValue == NULL`
4032
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
3951
4033
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
3952
- /// - ::UR_RESULT_ERROR_INVALID_VALUE
3953
4034
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
3954
4035
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3955
4036
UR_APIEXPORT ur_result_t UR_APICALL
@@ -4315,8 +4396,14 @@ typedef enum ur_profiling_info_t {
4315
4396
/// + `NULL == hEvent`
4316
4397
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
4317
4398
/// + `::UR_EVENT_INFO_REFERENCE_COUNT < propName`
4318
- /// - ::UR_RESULT_ERROR_INVALID_VALUE
4319
- /// + `pPropValue && propSize == 0`
4399
+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
4400
+ /// + If `propName` is not supported by the adapter.
4401
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
4402
+ /// + `propSize == 0 && pPropValue != NULL`
4403
+ /// + If `propSize` is less than the real number of bytes needed to return the info.
4404
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
4405
+ /// + `propSize != 0 && pPropValue == NULL`
4406
+ /// + `pPropValue == NULL && pPropSizeRet == NULL`
4320
4407
/// - ::UR_RESULT_ERROR_INVALID_EVENT
4321
4408
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
4322
4409
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
@@ -5894,7 +5981,7 @@ typedef struct ur_platform_get_info_params_t {
5894
5981
ur_platform_info_t * ppropName ;
5895
5982
size_t * ppropSize ;
5896
5983
void * * ppPropValue ;
5897
- size_t * * ppSizeRet ;
5984
+ size_t * * ppPropSizeRet ;
5898
5985
} ur_platform_get_info_params_t ;
5899
5986
5900
5987
///////////////////////////////////////////////////////////////////////////////
0 commit comments