Skip to content

Commit b7468c8

Browse files
committed
Update generated files from new script.
Signed-off-by: JackAKirk <[email protected]>
1 parent da13664 commit b7468c8

File tree

11 files changed

+131
-129
lines changed

11 files changed

+131
-129
lines changed

include/ur_api.h

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8938,63 +8938,65 @@ urEnqueueTimestampRecordingExp(
89388938
#if !defined(__GNUC__)
89398939
#pragma endregion
89408940
#endif
8941-
// Intel 'oneAPI' Unified Runtime Experimental APIs for (kernel) Launch Attributes
8941+
// Intel 'oneAPI' Unified Runtime Experimental APIs for (kernel) Launch Properties
89428942
#if !defined(__GNUC__)
89438943
#pragma region launch attributes(experimental)
89448944
#endif
89458945
///////////////////////////////////////////////////////////////////////////////
8946-
#ifndef UR_LAUNCH_ATTRIBUTES_EXTENSION_STRING_EXP
8947-
/// @brief The extension string that defines support for the Launch Attributes
8946+
#ifndef UR_LAUNCH_PROPERTIES_EXTENSION_STRING_EXP
8947+
/// @brief The extension string that defines support for the Launch Properties
89488948
/// extension, which is returned when querying device extensions.
8949-
#define UR_LAUNCH_ATTRIBUTES_EXTENSION_STRING_EXP "ur_exp_launch_attributes"
8950-
#endif // UR_LAUNCH_ATTRIBUTES_EXTENSION_STRING_EXP
8949+
#define UR_LAUNCH_PROPERTIES_EXTENSION_STRING_EXP "ur_exp_launch_properties"
8950+
#endif // UR_LAUNCH_PROPERTIES_EXTENSION_STRING_EXP
89518951

89528952
///////////////////////////////////////////////////////////////////////////////
8953-
/// @brief Specifies a launch attribute id
8953+
/// @brief Specifies a launch property id
89548954
///
89558955
/// @remarks
89568956
/// _Analogues_
89578957
/// - **CUlaunchAttributeID**
8958-
typedef enum ur_exp_launch_attribute_id_t {
8959-
UR_EXP_LAUNCH_ATTRIBUTE_ID_IGNORE = 0, ///< the attribute has no effect
8960-
UR_EXP_LAUNCH_ATTRIBUTE_ID_COOPERATIVE = 1, ///< whether to launch a cooperative kernel
8961-
UR_EXP_LAUNCH_ATTRIBUTE_ID_CLUSTER_DIMENSION = 2, ///< cluster dimensions
8958+
typedef enum ur_exp_launch_property_id_t {
8959+
UR_EXP_LAUNCH_PROPERTY_ID_IGNORE = 0, ///< The property has no effect
8960+
UR_EXP_LAUNCH_PROPERTY_ID_COOPERATIVE = 1, ///< Whether to launch a cooperative kernel
8961+
UR_EXP_LAUNCH_PROPERTY_ID_CLUSTER_DIMENSION = 2, ///< work-group cluster dimensions
89628962
/// @cond
8963-
UR_EXP_LAUNCH_ATTRIBUTE_ID_FORCE_UINT32 = 0x7fffffff
8963+
UR_EXP_LAUNCH_PROPERTY_ID_FORCE_UINT32 = 0x7fffffff
89648964
/// @endcond
89658965

8966-
} ur_exp_launch_attribute_id_t;
8966+
} ur_exp_launch_property_id_t;
89678967

89688968
///////////////////////////////////////////////////////////////////////////////
8969-
/// @brief Specifies a launch attribute value
8969+
/// @brief Specifies a launch property value
89708970
///
89718971
/// @remarks
89728972
/// _Analogues_
89738973
/// - **CUlaunchAttributeValue**
8974-
typedef union ur_exp_launch_attribute_value_t {
8975-
uint32_t clusterDim[3]; ///< [in] cluster dimensions (x, y, z)
8974+
typedef union ur_exp_launch_property_value_t {
8975+
uint32_t clusterDim[3]; ///< [in] dimensions of the cluster (units of work-group) (x, y, z). Each
8976+
///< value must be a divisor of the corresponding global work-size
8977+
///< dimension (in units of work-group).
89768978
int cooperative; ///< [in] non-zero value indicates a cooperative kernel
89778979

8978-
} ur_exp_launch_attribute_value_t;
8980+
} ur_exp_launch_property_value_t;
89798981

89808982
///////////////////////////////////////////////////////////////////////////////
8981-
/// @brief Kernel launch attribute
8983+
/// @brief Kernel launch property
89828984
///
89838985
/// @remarks
89848986
/// _Analogues_
89858987
/// - **cuLaunchAttribute**
8986-
typedef struct ur_exp_launch_attribute_t {
8987-
ur_exp_launch_attribute_id_t id; ///< [in] Launch attribute id
8988-
ur_exp_launch_attribute_value_t value; ///< [in][tagged_by(id)] Launch attribute value
8988+
typedef struct ur_exp_launch_property_t {
8989+
ur_exp_launch_property_id_t id; ///< [in] launch property id
8990+
ur_exp_launch_property_value_t value; ///< [in][tagged_by(id)] launch property value
89898991

8990-
} ur_exp_launch_attribute_t;
8992+
} ur_exp_launch_property_t;
89918993

89928994
///////////////////////////////////////////////////////////////////////////////
8993-
/// @brief Launch kernel with custom Launch attributes
8995+
/// @brief Launch kernel with custom launch properties
89948996
///
89958997
/// @details
8996-
/// - Launches the kernel using the specified launch attributes
8997-
/// - If numAttrsInLaunchAttrList == 0 then a regular kernel launch is used:
8998+
/// - Launches the kernel using the specified launch properties
8999+
/// - If numPropsInLaunchPropList == 0 then a regular kernel launch is used:
89989000
/// `urEnqueueKernelLaunch`
89999001
/// - Consult the appropriate adapter driver documentation for details of
90009002
/// adapter specific behavior and native error codes that may be returned.
@@ -9015,9 +9017,9 @@ typedef struct ur_exp_launch_attribute_t {
90159017
/// + NULL == hKernel
90169018
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
90179019
/// + `NULL == pGlobalWorkSize`
9018-
/// + `NULL == launchAttrList`
9020+
/// + `NULL == launchPropList`
90199021
/// + NULL == pGlobalWorkSize
9020-
/// + numAttrsInLaunchAttrList != 0 && launchAttrList == NULL
9022+
/// + numPropsInLaunchpropList != 0 && launchPropList == NULL
90219023
/// - ::UR_RESULT_SUCCESS
90229024
/// - ::UR_RESULT_ERROR_UNINITIALIZED
90239025
/// - ::UR_RESULT_ERROR_DEVICE_LOST
@@ -9038,26 +9040,26 @@ typedef struct ur_exp_launch_attribute_t {
90389040
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
90399041
UR_APIEXPORT ur_result_t UR_APICALL
90409042
urEnqueueKernelLaunchCustomExp(
9041-
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
9042-
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
9043-
uint32_t workDim, ///< [in] number of dimensions, from 1 to 3, to specify the global and
9044-
///< work-group work-items
9045-
const size_t *pGlobalWorkSize, ///< [in] pointer to an array of workDim unsigned values that specify the
9046-
///< number of global work-items in workDim that will execute the kernel
9047-
///< function
9048-
const size_t *pLocalWorkSize, ///< [in][optional] pointer to an array of workDim unsigned values that
9049-
///< specify the number of local work-items forming a work-group that will
9050-
///< execute the kernel function. If nullptr, the runtime implementation
9051-
///< will choose the work-group size.
9052-
uint32_t numAttrsInLaunchAttrList, ///< [in] size of the launch attr list
9053-
const ur_exp_launch_attribute_t *launchAttrList, ///< [in][range(0, numAttrsInLaunchAttrList)] pointer to a list of launch
9054-
///< attributes
9055-
uint32_t numEventsInWaitList, ///< [in] size of the event wait list
9056-
const ur_event_handle_t *phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] pointer to a list of
9057-
///< events that must be complete before the kernel execution. If nullptr,
9058-
///< the numEventsInWaitList must be 0, indicating that no wait event.
9059-
ur_event_handle_t *phEvent ///< [out][optional] return an event object that identifies this particular
9060-
///< kernel execution instance.
9043+
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
9044+
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
9045+
uint32_t workDim, ///< [in] number of dimensions, from 1 to 3, to specify the global and
9046+
///< work-group work-items
9047+
const size_t *pGlobalWorkSize, ///< [in] pointer to an array of workDim unsigned values that specify the
9048+
///< number of global work-items in workDim that will execute the kernel
9049+
///< function
9050+
const size_t *pLocalWorkSize, ///< [in][optional] pointer to an array of workDim unsigned values that
9051+
///< specify the number of local work-items forming a work-group that will
9052+
///< execute the kernel function. If nullptr, the runtime implementation
9053+
///< will choose the work-group size.
9054+
uint32_t numPropsInLaunchPropList, ///< [in] size of the launch prop list
9055+
const ur_exp_launch_property_t *launchPropList, ///< [in][range(0, numPropsInLaunchPropList)] pointer to a list of launch
9056+
///< properties
9057+
uint32_t numEventsInWaitList, ///< [in] size of the event wait list
9058+
const ur_event_handle_t *phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] pointer to a list of
9059+
///< events that must be complete before the kernel execution. If nullptr,
9060+
///< the numEventsInWaitList must be 0, indicating that no wait event.
9061+
ur_event_handle_t *phEvent ///< [out][optional] return an event object that identifies this particular
9062+
///< kernel execution instance.
90619063
);
90629064

90639065
#if !defined(__GNUC__)
@@ -10764,8 +10766,8 @@ typedef struct ur_enqueue_kernel_launch_custom_exp_params_t {
1076410766
uint32_t *pworkDim;
1076510767
const size_t **ppGlobalWorkSize;
1076610768
const size_t **ppLocalWorkSize;
10767-
uint32_t *pnumAttrsInLaunchAttrList;
10768-
const ur_exp_launch_attribute_t **plaunchAttrList;
10769+
uint32_t *pnumPropsInLaunchPropList;
10770+
const ur_exp_launch_property_t **plaunchPropList;
1076910771
uint32_t *pnumEventsInWaitList;
1077010772
const ur_event_handle_t **pphEventWaitList;
1077110773
ur_event_handle_t **pphEvent;

include/ur_ddi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnEnqueueKernelLaunchCustomExp_t)(
14441444
const size_t *,
14451445
const size_t *,
14461446
uint32_t,
1447-
const ur_exp_launch_attribute_t *,
1447+
const ur_exp_launch_property_t *,
14481448
uint32_t,
14491449
const ur_event_handle_t *,
14501450
ur_event_handle_t *);

include/ur_print.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,20 +1003,20 @@ UR_APIEXPORT ur_result_t UR_APICALL urPrintExpCommandBufferUpdateValueArgDesc(co
10031003
UR_APIEXPORT ur_result_t UR_APICALL urPrintExpCommandBufferUpdateKernelLaunchDesc(const struct ur_exp_command_buffer_update_kernel_launch_desc_t params, char *buffer, const size_t buff_size, size_t *out_size);
10041004

10051005
///////////////////////////////////////////////////////////////////////////////
1006-
/// @brief Print ur_exp_launch_attribute_id_t enum
1006+
/// @brief Print ur_exp_launch_property_id_t enum
10071007
/// @returns
10081008
/// - ::UR_RESULT_SUCCESS
10091009
/// - ::UR_RESULT_ERROR_INVALID_SIZE
10101010
/// - `buff_size < out_size`
1011-
UR_APIEXPORT ur_result_t UR_APICALL urPrintExpLaunchAttributeId(enum ur_exp_launch_attribute_id_t value, char *buffer, const size_t buff_size, size_t *out_size);
1011+
UR_APIEXPORT ur_result_t UR_APICALL urPrintExpLaunchPropertyId(enum ur_exp_launch_property_id_t value, char *buffer, const size_t buff_size, size_t *out_size);
10121012

10131013
///////////////////////////////////////////////////////////////////////////////
1014-
/// @brief Print ur_exp_launch_attribute_t struct
1014+
/// @brief Print ur_exp_launch_property_t struct
10151015
/// @returns
10161016
/// - ::UR_RESULT_SUCCESS
10171017
/// - ::UR_RESULT_ERROR_INVALID_SIZE
10181018
/// - `buff_size < out_size`
1019-
UR_APIEXPORT ur_result_t UR_APICALL urPrintExpLaunchAttribute(const struct ur_exp_launch_attribute_t params, char *buffer, const size_t buff_size, size_t *out_size);
1019+
UR_APIEXPORT ur_result_t UR_APICALL urPrintExpLaunchProperty(const struct ur_exp_launch_property_t params, char *buffer, const size_t buff_size, size_t *out_size);
10201020

10211021
///////////////////////////////////////////////////////////////////////////////
10221022
/// @brief Print ur_exp_peer_info_t enum

include/ur_print.hpp

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ inline ur_result_t printTagged(std::ostream &os, const void *ptr, ur_exp_command
209209

210210
inline ur_result_t printUnion(
211211
std::ostream &os,
212-
const union ur_exp_launch_attribute_value_t params,
213-
const enum ur_exp_launch_attribute_id_t tag);
212+
const union ur_exp_launch_property_value_t params,
213+
const enum ur_exp_launch_property_id_t tag);
214214

215215
template <>
216216
inline ur_result_t printTagged(std::ostream &os, const void *ptr, ur_exp_peer_info_t value, size_t size);
@@ -340,8 +340,8 @@ inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct
340340
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_command_buffer_update_pointer_arg_desc_t params);
341341
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_command_buffer_update_value_arg_desc_t params);
342342
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_command_buffer_update_kernel_launch_desc_t params);
343-
inline std::ostream &operator<<(std::ostream &os, enum ur_exp_launch_attribute_id_t value);
344-
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_launch_attribute_t params);
343+
inline std::ostream &operator<<(std::ostream &os, enum ur_exp_launch_property_id_t value);
344+
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_launch_property_t params);
345345
inline std::ostream &operator<<(std::ostream &os, enum ur_exp_peer_info_t value);
346346

347347
///////////////////////////////////////////////////////////////////////////////
@@ -9848,19 +9848,19 @@ inline std::ostream &operator<<(std::ostream &os, const struct ur_exp_command_bu
98489848
return os;
98499849
}
98509850
///////////////////////////////////////////////////////////////////////////////
9851-
/// @brief Print operator for the ur_exp_launch_attribute_id_t type
9851+
/// @brief Print operator for the ur_exp_launch_property_id_t type
98529852
/// @returns
98539853
/// std::ostream &
9854-
inline std::ostream &operator<<(std::ostream &os, enum ur_exp_launch_attribute_id_t value) {
9854+
inline std::ostream &operator<<(std::ostream &os, enum ur_exp_launch_property_id_t value) {
98559855
switch (value) {
9856-
case UR_EXP_LAUNCH_ATTRIBUTE_ID_IGNORE:
9857-
os << "UR_EXP_LAUNCH_ATTRIBUTE_ID_IGNORE";
9856+
case UR_EXP_LAUNCH_PROPERTY_ID_IGNORE:
9857+
os << "UR_EXP_LAUNCH_PROPERTY_ID_IGNORE";
98589858
break;
9859-
case UR_EXP_LAUNCH_ATTRIBUTE_ID_COOPERATIVE:
9860-
os << "UR_EXP_LAUNCH_ATTRIBUTE_ID_COOPERATIVE";
9859+
case UR_EXP_LAUNCH_PROPERTY_ID_COOPERATIVE:
9860+
os << "UR_EXP_LAUNCH_PROPERTY_ID_COOPERATIVE";
98619861
break;
9862-
case UR_EXP_LAUNCH_ATTRIBUTE_ID_CLUSTER_DIMENSION:
9863-
os << "UR_EXP_LAUNCH_ATTRIBUTE_ID_CLUSTER_DIMENSION";
9862+
case UR_EXP_LAUNCH_PROPERTY_ID_CLUSTER_DIMENSION:
9863+
os << "UR_EXP_LAUNCH_PROPERTY_ID_CLUSTER_DIMENSION";
98649864
break;
98659865
default:
98669866
os << "unknown enumerator";
@@ -9871,15 +9871,15 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_exp_launch_attribute_i
98719871
namespace ur::details {
98729872

98739873
///////////////////////////////////////////////////////////////////////////////
9874-
// @brief Print ur_exp_launch_attribute_value_t union
9874+
// @brief Print ur_exp_launch_property_value_t union
98759875
inline ur_result_t printUnion(
98769876
std::ostream &os,
9877-
const union ur_exp_launch_attribute_value_t params,
9878-
const enum ur_exp_launch_attribute_id_t tag) {
9879-
os << "(union ur_exp_launch_attribute_value_t){";
9877+
const union ur_exp_launch_property_value_t params,
9878+
const enum ur_exp_launch_property_id_t tag) {
9879+
os << "(union ur_exp_launch_property_value_t){";
98809880

98819881
switch (tag) {
9882-
case UR_EXP_LAUNCH_ATTRIBUTE_ID_CLUSTER_DIMENSION:
9882+
case UR_EXP_LAUNCH_PROPERTY_ID_CLUSTER_DIMENSION:
98839883

98849884
os << ".clusterDim = {";
98859885
for (auto i = 0; i < 3; i++) {
@@ -9892,7 +9892,7 @@ inline ur_result_t printUnion(
98929892
os << "}";
98939893

98949894
break;
9895-
case UR_EXP_LAUNCH_ATTRIBUTE_ID_COOPERATIVE:
9895+
case UR_EXP_LAUNCH_PROPERTY_ID_COOPERATIVE:
98969896

98979897
os << ".cooperative = ";
98989898

@@ -9908,11 +9908,11 @@ inline ur_result_t printUnion(
99089908
}
99099909
} // namespace ur::details
99109910
///////////////////////////////////////////////////////////////////////////////
9911-
/// @brief Print operator for the ur_exp_launch_attribute_t type
9911+
/// @brief Print operator for the ur_exp_launch_property_t type
99129912
/// @returns
99139913
/// std::ostream &
9914-
inline std::ostream &operator<<(std::ostream &os, const struct ur_exp_launch_attribute_t params) {
9915-
os << "(struct ur_exp_launch_attribute_t){";
9914+
inline std::ostream &operator<<(std::ostream &os, const struct ur_exp_launch_property_t params) {
9915+
os << "(struct ur_exp_launch_property_t){";
99169916

99179917
os << ".id = ";
99189918

@@ -14182,18 +14182,18 @@ inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct
1418214182
*(params->ppLocalWorkSize));
1418314183

1418414184
os << ", ";
14185-
os << ".numAttrsInLaunchAttrList = ";
14185+
os << ".numPropsInLaunchPropList = ";
1418614186

14187-
os << *(params->pnumAttrsInLaunchAttrList);
14187+
os << *(params->pnumPropsInLaunchPropList);
1418814188

1418914189
os << ", ";
14190-
os << ".launchAttrList = {";
14191-
for (size_t i = 0; *(params->plaunchAttrList) != NULL && i < *params->pnumAttrsInLaunchAttrList; ++i) {
14190+
os << ".launchPropList = {";
14191+
for (size_t i = 0; *(params->plaunchPropList) != NULL && i < *params->pnumPropsInLaunchPropList; ++i) {
1419214192
if (i != 0) {
1419314193
os << ", ";
1419414194
}
1419514195

14196-
os << (*(params->plaunchAttrList))[i];
14196+
os << (*(params->plaunchPropList))[i];
1419714197
}
1419814198
os << "}";
1419914199

source/adapters/null/ur_nullddi.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5571,10 +5571,10 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunchCustomExp(
55715571
///< specify the number of local work-items forming a work-group that will
55725572
///< execute the kernel function. If nullptr, the runtime implementation
55735573
///< will choose the work-group size.
5574-
uint32_t numAttrsInLaunchAttrList, ///< [in] size of the launch attr list
5575-
const ur_exp_launch_attribute_t *
5576-
launchAttrList, ///< [in][range(0, numAttrsInLaunchAttrList)] pointer to a list of launch
5577-
///< attributes
5574+
uint32_t numPropsInLaunchPropList, ///< [in] size of the launch prop list
5575+
const ur_exp_launch_property_t *
5576+
launchPropList, ///< [in][range(0, numPropsInLaunchPropList)] pointer to a list of launch
5577+
///< properties
55785578
uint32_t numEventsInWaitList, ///< [in] size of the event wait list
55795579
const ur_event_handle_t *
55805580
phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] pointer to a list of
@@ -5592,7 +5592,7 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunchCustomExp(
55925592
if (nullptr != pfnKernelLaunchCustomExp) {
55935593
result = pfnKernelLaunchCustomExp(
55945594
hQueue, hKernel, workDim, pGlobalWorkSize, pLocalWorkSize,
5595-
numAttrsInLaunchAttrList, launchAttrList, numEventsInWaitList,
5595+
numPropsInLaunchPropList, launchPropList, numEventsInWaitList,
55965596
phEventWaitList, phEvent);
55975597
} else {
55985598
// generic implementation

0 commit comments

Comments
 (0)