Skip to content

Commit

Permalink
Merge pull request #396 from veselypeta/petr/small-spec-fixes
Browse files Browse the repository at this point in the history
[ur] Fix yaml problems
  • Loading branch information
igchor authored Mar 30, 2023
2 parents cdca7c1 + 9f00a5b commit dfb0d75
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion include/ur.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,10 @@ class ur_usm_desc_t(Structure):
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
("flags", ur_usm_flags_t), ## [in] memory allocation flags.
("hints", ur_usm_advice_t), ## [in] Memory advice hints
("align", c_ulong) ## [in] memory advice hints.
("align", c_ulong) ## [in] alignment of the USM memory object
## Must be zero or a power of 2.
## Must be equal to or smaller than the size of the largest data type
## supported by `hDevice`.
]

###############################################################################
Expand Down
7 changes: 5 additions & 2 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ urDeviceCreateWithNativeHandle(
);

///////////////////////////////////////////////////////////////////////////////
/// @brief static
/// @brief Returns synchronized Host and Device global timestamps.
///
/// @details
/// - The application may call this function from simultaneous threads for
Expand Down Expand Up @@ -2226,7 +2226,10 @@ typedef struct ur_usm_desc_t {
const void *pNext; ///< [in][optional] pointer to extension-specific structure
ur_usm_flags_t flags; ///< [in] memory allocation flags.
ur_usm_advice_t hints; ///< [in] Memory advice hints
uint32_t align; ///< [in] memory advice hints.
uint32_t align; ///< [in] alignment of the USM memory object
///< Must be zero or a power of 2.
///< Must be equal to or smaller than the size of the largest data type
///< supported by `hDevice`.

} ur_usm_desc_t;

Expand Down
2 changes: 1 addition & 1 deletion scripts/core/device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ type: function
desc: "Returns synchronized Host and Device global timestamps."
class: $xDevice
name: GetGlobalTimestamps
desc: static
decl: static
ordinal: "0"
analogue:
- "**clGetDeviceAndHostTimer**"
Expand Down
1 change: 0 additions & 1 deletion scripts/core/usm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ members:
[in] alignment of the USM memory object
Must be zero or a power of 2.
Must be equal to or smaller than the size of the largest data type supported by `hDevice`.
desc: "[in] memory advice hints."
--- #--------------------------------------------------------------------------
type: struct
desc: "USM host allocation descriptor type."
Expand Down
2 changes: 1 addition & 1 deletion source/loader/ur_libapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ ur_result_t UR_APICALL urDeviceCreateWithNativeHandle(
}

///////////////////////////////////////////////////////////////////////////////
/// @brief static
/// @brief Returns synchronized Host and Device global timestamps.
///
/// @details
/// - The application may call this function from simultaneous threads for
Expand Down
2 changes: 1 addition & 1 deletion source/ur_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ ur_result_t UR_APICALL urDeviceCreateWithNativeHandle(
}

///////////////////////////////////////////////////////////////////////////////
/// @brief static
/// @brief Returns synchronized Host and Device global timestamps.
///
/// @details
/// - The application may call this function from simultaneous threads for
Expand Down

0 comments on commit dfb0d75

Please sign in to comment.