@@ -196,9 +196,6 @@ typedef enum ur_function_t {
196
196
UR_FUNCTION_ADAPTER_RETAIN = 179, ///< Enumerator for ::urAdapterRetain
197
197
UR_FUNCTION_ADAPTER_GET_LAST_ERROR = 180, ///< Enumerator for ::urAdapterGetLastError
198
198
UR_FUNCTION_ADAPTER_GET_INFO = 181, ///< Enumerator for ::urAdapterGetInfo
199
- UR_FUNCTION_PROGRAM_BUILD_EXP = 197, ///< Enumerator for ::urProgramBuildExp
200
- UR_FUNCTION_PROGRAM_COMPILE_EXP = 198, ///< Enumerator for ::urProgramCompileExp
201
- UR_FUNCTION_PROGRAM_LINK_EXP = 199, ///< Enumerator for ::urProgramLinkExp
202
199
UR_FUNCTION_LOADER_CONFIG_SET_CODE_LOCATION_CALLBACK = 200, ///< Enumerator for ::urLoaderConfigSetCodeLocationCallback
203
200
UR_FUNCTION_LOADER_INIT = 201, ///< Enumerator for ::urLoaderInit
204
201
UR_FUNCTION_LOADER_TEAR_DOWN = 202, ///< Enumerator for ::urLoaderTearDown
@@ -4088,17 +4085,21 @@ urProgramCreateWithBinary(
4088
4085
/// - ::UR_RESULT_ERROR_DEVICE_LOST
4089
4086
/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
4090
4087
/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
4091
- /// + `NULL == hContext`
4092
4088
/// + `NULL == hProgram`
4089
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
4090
+ /// + `NULL == phDevices`
4093
4091
/// - ::UR_RESULT_ERROR_INVALID_PROGRAM
4094
4092
/// + If `hProgram` isn't a valid program object.
4095
4093
/// - ::UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE
4096
4094
/// + If an error occurred when building `hProgram`.
4095
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
4096
+ /// + `numDevices == 0`
4097
4097
UR_APIEXPORT ur_result_t UR_APICALL
4098
4098
urProgramBuild(
4099
- ur_context_handle_t hContext, ///< [in] handle of the context instance.
4100
- ur_program_handle_t hProgram, ///< [in] Handle of the program to build.
4101
- const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
4099
+ ur_program_handle_t hProgram, ///< [in] Handle of the program to build.
4100
+ uint32_t numDevices, ///< [in] length of `phDevices`
4101
+ ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
4102
+ const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
4102
4103
);
4103
4104
4104
4105
///////////////////////////////////////////////////////////////////////////////
@@ -4120,17 +4121,21 @@ urProgramBuild(
4120
4121
/// - ::UR_RESULT_ERROR_DEVICE_LOST
4121
4122
/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
4122
4123
/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
4123
- /// + `NULL == hContext`
4124
4124
/// + `NULL == hProgram`
4125
+ /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
4126
+ /// + `NULL == phDevices`
4125
4127
/// - ::UR_RESULT_ERROR_INVALID_PROGRAM
4126
4128
/// + If `hProgram` isn't a valid program object.
4127
4129
/// - ::UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE
4128
4130
/// + If an error occurred while compiling `hProgram`.
4131
+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
4132
+ /// + `numDevices == 0`
4129
4133
UR_APIEXPORT ur_result_t UR_APICALL
4130
4134
urProgramCompile(
4131
- ur_context_handle_t hContext, ///< [in] handle of the context instance.
4132
- ur_program_handle_t hProgram, ///< [in][out] handle of the program to compile.
4133
- const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
4135
+ ur_program_handle_t hProgram, ///< [in][out] handle of the program to compile.
4136
+ uint32_t numDevices, ///< [in] length of `phDevices`
4137
+ ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
4138
+ const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
4134
4139
);
4135
4140
4136
4141
///////////////////////////////////////////////////////////////////////////////
@@ -4155,17 +4160,21 @@ urProgramCompile(
4155
4160
/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
4156
4161
/// + `NULL == hContext`
4157
4162
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
4163
+ /// + `NULL == phDevices`
4158
4164
/// + `NULL == phPrograms`
4159
4165
/// + `NULL == phProgram`
4160
4166
/// - ::UR_RESULT_ERROR_INVALID_PROGRAM
4161
4167
/// + If one of the programs in `phPrograms` isn't a valid program object.
4162
4168
/// - ::UR_RESULT_ERROR_INVALID_SIZE
4169
+ /// + `numDevices == 0`
4163
4170
/// + `count == 0`
4164
4171
/// - ::UR_RESULT_ERROR_PROGRAM_LINK_FAILURE
4165
4172
/// + If an error occurred while linking `phPrograms`.
4166
4173
UR_APIEXPORT ur_result_t UR_APICALL
4167
4174
urProgramLink(
4168
4175
ur_context_handle_t hContext, ///< [in] handle of the context instance.
4176
+ uint32_t numDevices, ///< [in] number of devices
4177
+ ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
4169
4178
uint32_t count, ///< [in] number of program handles in `phPrograms`.
4170
4179
const ur_program_handle_t *phPrograms, ///< [in][range(0, count)] pointer to array of program handles.
4171
4180
const char *pOptions, ///< [in][optional] pointer to linker options null-terminated string.
@@ -8420,131 +8429,6 @@ urKernelSuggestMaxCooperativeGroupCountExp(
8420
8429
uint32_t *pGroupCountRet ///< [out] pointer to maximum number of groups
8421
8430
);
8422
8431
8423
- #if !defined(__GNUC__)
8424
- #pragma endregion
8425
- #endif
8426
- // Intel 'oneAPI' Unified Runtime Experimental APIs for multi-device compile
8427
- #if !defined(__GNUC__)
8428
- #pragma region multi device compile(experimental)
8429
- #endif
8430
- ///////////////////////////////////////////////////////////////////////////////
8431
- #ifndef UR_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP
8432
- /// @brief The extension string which defines support for test
8433
- /// which is returned when querying device extensions.
8434
- #define UR_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP "ur_exp_multi_device_compile"
8435
- #endif // UR_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP
8436
-
8437
- ///////////////////////////////////////////////////////////////////////////////
8438
- /// @brief Produces an executable program from one program, negates need for the
8439
- /// linking step.
8440
- ///
8441
- /// @details
8442
- /// - The application may call this function from simultaneous threads.
8443
- /// - Following a successful call to this entry point, the program passed
8444
- /// will contain a binary of the ::UR_PROGRAM_BINARY_TYPE_EXECUTABLE type
8445
- /// for each device in `phDevices`.
8446
- ///
8447
- /// @remarks
8448
- /// _Analogues_
8449
- /// - **clBuildProgram**
8450
- ///
8451
- /// @returns
8452
- /// - ::UR_RESULT_SUCCESS
8453
- /// - ::UR_RESULT_ERROR_UNINITIALIZED
8454
- /// - ::UR_RESULT_ERROR_DEVICE_LOST
8455
- /// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
8456
- /// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
8457
- /// + `NULL == hProgram`
8458
- /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8459
- /// + `NULL == phDevices`
8460
- /// - ::UR_RESULT_ERROR_INVALID_PROGRAM
8461
- /// + If `hProgram` isn't a valid program object.
8462
- /// - ::UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE
8463
- /// + If an error occurred when building `hProgram`.
8464
- UR_APIEXPORT ur_result_t UR_APICALL
8465
- urProgramBuildExp(
8466
- ur_program_handle_t hProgram, ///< [in] Handle of the program to build.
8467
- uint32_t numDevices, ///< [in] number of devices
8468
- ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
8469
- const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
8470
- );
8471
-
8472
- ///////////////////////////////////////////////////////////////////////////////
8473
- /// @brief Produces an executable program from one or more programs.
8474
- ///
8475
- /// @details
8476
- /// - The application may call this function from simultaneous threads.
8477
- /// - Following a successful call to this entry point `hProgram` will
8478
- /// contain a binary of the ::UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT type
8479
- /// for each device in `phDevices`.
8480
- ///
8481
- /// @remarks
8482
- /// _Analogues_
8483
- /// - **clCompileProgram**
8484
- ///
8485
- /// @returns
8486
- /// - ::UR_RESULT_SUCCESS
8487
- /// - ::UR_RESULT_ERROR_UNINITIALIZED
8488
- /// - ::UR_RESULT_ERROR_DEVICE_LOST
8489
- /// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
8490
- /// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
8491
- /// + `NULL == hProgram`
8492
- /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8493
- /// + `NULL == phDevices`
8494
- /// - ::UR_RESULT_ERROR_INVALID_PROGRAM
8495
- /// + If `hProgram` isn't a valid program object.
8496
- /// - ::UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE
8497
- /// + If an error occurred while compiling `hProgram`.
8498
- UR_APIEXPORT ur_result_t UR_APICALL
8499
- urProgramCompileExp(
8500
- ur_program_handle_t hProgram, ///< [in][out] handle of the program to compile.
8501
- uint32_t numDevices, ///< [in] number of devices
8502
- ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
8503
- const char *pOptions ///< [in][optional] pointer to build options null-terminated string.
8504
- );
8505
-
8506
- ///////////////////////////////////////////////////////////////////////////////
8507
- /// @brief Produces an executable program from one or more programs.
8508
- ///
8509
- /// @details
8510
- /// - The application may call this function from simultaneous threads.
8511
- /// - Following a successful call to this entry point the program returned
8512
- /// in `phProgram` will contain a binary of the
8513
- /// ::UR_PROGRAM_BINARY_TYPE_EXECUTABLE type for each device in
8514
- /// `phDevices`.
8515
- ///
8516
- /// @remarks
8517
- /// _Analogues_
8518
- /// - **clLinkProgram**
8519
- ///
8520
- /// @returns
8521
- /// - ::UR_RESULT_SUCCESS
8522
- /// - ::UR_RESULT_ERROR_UNINITIALIZED
8523
- /// - ::UR_RESULT_ERROR_DEVICE_LOST
8524
- /// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
8525
- /// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
8526
- /// + `NULL == hContext`
8527
- /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8528
- /// + `NULL == phDevices`
8529
- /// + `NULL == phPrograms`
8530
- /// + `NULL == phProgram`
8531
- /// - ::UR_RESULT_ERROR_INVALID_PROGRAM
8532
- /// + If one of the programs in `phPrograms` isn't a valid program object.
8533
- /// - ::UR_RESULT_ERROR_INVALID_SIZE
8534
- /// + `count == 0`
8535
- /// - ::UR_RESULT_ERROR_PROGRAM_LINK_FAILURE
8536
- /// + If an error occurred while linking `phPrograms`.
8537
- UR_APIEXPORT ur_result_t UR_APICALL
8538
- urProgramLinkExp(
8539
- ur_context_handle_t hContext, ///< [in] handle of the context instance.
8540
- uint32_t numDevices, ///< [in] number of devices
8541
- ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to array of device handles
8542
- uint32_t count, ///< [in] number of program handles in `phPrograms`.
8543
- const ur_program_handle_t *phPrograms, ///< [in][range(0, count)] pointer to array of program handles.
8544
- const char *pOptions, ///< [in][optional] pointer to linker options null-terminated string.
8545
- ur_program_handle_t *phProgram ///< [out] pointer to handle of program object created.
8546
- );
8547
-
8548
8432
#if !defined(__GNUC__)
8549
8433
#pragma endregion
8550
8434
#endif
@@ -9051,68 +8935,36 @@ typedef struct ur_program_create_with_binary_params_t {
9051
8935
/// @details Each entry is a pointer to the parameter passed to the function;
9052
8936
/// allowing the callback the ability to modify the parameter's value
9053
8937
typedef struct ur_program_build_params_t {
9054
- ur_context_handle_t *phContext;
9055
- ur_program_handle_t *phProgram;
9056
- const char **ppOptions;
9057
- } ur_program_build_params_t;
9058
-
9059
- ///////////////////////////////////////////////////////////////////////////////
9060
- /// @brief Function parameters for urProgramBuildExp
9061
- /// @details Each entry is a pointer to the parameter passed to the function;
9062
- /// allowing the callback the ability to modify the parameter's value
9063
- typedef struct ur_program_build_exp_params_t {
9064
8938
ur_program_handle_t *phProgram;
9065
8939
uint32_t *pnumDevices;
9066
8940
ur_device_handle_t **pphDevices;
9067
8941
const char **ppOptions;
9068
- } ur_program_build_exp_params_t ;
8942
+ } ur_program_build_params_t ;
9069
8943
9070
8944
///////////////////////////////////////////////////////////////////////////////
9071
8945
/// @brief Function parameters for urProgramCompile
9072
8946
/// @details Each entry is a pointer to the parameter passed to the function;
9073
8947
/// allowing the callback the ability to modify the parameter's value
9074
8948
typedef struct ur_program_compile_params_t {
9075
- ur_context_handle_t *phContext;
9076
- ur_program_handle_t *phProgram;
9077
- const char **ppOptions;
9078
- } ur_program_compile_params_t;
9079
-
9080
- ///////////////////////////////////////////////////////////////////////////////
9081
- /// @brief Function parameters for urProgramCompileExp
9082
- /// @details Each entry is a pointer to the parameter passed to the function;
9083
- /// allowing the callback the ability to modify the parameter's value
9084
- typedef struct ur_program_compile_exp_params_t {
9085
8949
ur_program_handle_t *phProgram;
9086
8950
uint32_t *pnumDevices;
9087
8951
ur_device_handle_t **pphDevices;
9088
8952
const char **ppOptions;
9089
- } ur_program_compile_exp_params_t ;
8953
+ } ur_program_compile_params_t ;
9090
8954
9091
8955
///////////////////////////////////////////////////////////////////////////////
9092
8956
/// @brief Function parameters for urProgramLink
9093
8957
/// @details Each entry is a pointer to the parameter passed to the function;
9094
8958
/// allowing the callback the ability to modify the parameter's value
9095
8959
typedef struct ur_program_link_params_t {
9096
- ur_context_handle_t *phContext;
9097
- uint32_t *pcount;
9098
- const ur_program_handle_t **pphPrograms;
9099
- const char **ppOptions;
9100
- ur_program_handle_t **pphProgram;
9101
- } ur_program_link_params_t;
9102
-
9103
- ///////////////////////////////////////////////////////////////////////////////
9104
- /// @brief Function parameters for urProgramLinkExp
9105
- /// @details Each entry is a pointer to the parameter passed to the function;
9106
- /// allowing the callback the ability to modify the parameter's value
9107
- typedef struct ur_program_link_exp_params_t {
9108
8960
ur_context_handle_t *phContext;
9109
8961
uint32_t *pnumDevices;
9110
8962
ur_device_handle_t **pphDevices;
9111
8963
uint32_t *pcount;
9112
8964
const ur_program_handle_t **pphPrograms;
9113
8965
const char **ppOptions;
9114
8966
ur_program_handle_t **pphProgram;
9115
- } ur_program_link_exp_params_t ;
8967
+ } ur_program_link_params_t ;
9116
8968
9117
8969
///////////////////////////////////////////////////////////////////////////////
9118
8970
/// @brief Function parameters for urProgramRetain
0 commit comments