Skip to content

Commit dfb0d75

Browse files
authored
Merge pull request #396 from veselypeta/petr/small-spec-fixes
[ur] Fix yaml problems
2 parents cdca7c1 + 9f00a5b commit dfb0d75

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

include/ur.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,10 @@ class ur_usm_desc_t(Structure):
10171017
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
10181018
("flags", ur_usm_flags_t), ## [in] memory allocation flags.
10191019
("hints", ur_usm_advice_t), ## [in] Memory advice hints
1020-
("align", c_ulong) ## [in] memory advice hints.
1020+
("align", c_ulong) ## [in] alignment of the USM memory object
1021+
## Must be zero or a power of 2.
1022+
## Must be equal to or smaller than the size of the largest data type
1023+
## supported by `hDevice`.
10211024
]
10221025

10231026
###############################################################################

include/ur_api.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ urDeviceCreateWithNativeHandle(
11081108
);
11091109

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

22312234
} ur_usm_desc_t;
22322235

scripts/core/device.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ type: function
664664
desc: "Returns synchronized Host and Device global timestamps."
665665
class: $xDevice
666666
name: GetGlobalTimestamps
667-
desc: static
667+
decl: static
668668
ordinal: "0"
669669
analogue:
670670
- "**clGetDeviceAndHostTimer**"

scripts/core/usm.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ members:
132132
[in] alignment of the USM memory object
133133
Must be zero or a power of 2.
134134
Must be equal to or smaller than the size of the largest data type supported by `hDevice`.
135-
desc: "[in] memory advice hints."
136135
--- #--------------------------------------------------------------------------
137136
type: struct
138137
desc: "USM host allocation descriptor type."

source/loader/ur_libapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ ur_result_t UR_APICALL urDeviceCreateWithNativeHandle(
604604
}
605605

606606
///////////////////////////////////////////////////////////////////////////////
607-
/// @brief static
607+
/// @brief Returns synchronized Host and Device global timestamps.
608608
///
609609
/// @details
610610
/// - The application may call this function from simultaneous threads for

source/ur_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ ur_result_t UR_APICALL urDeviceCreateWithNativeHandle(
521521
}
522522

523523
///////////////////////////////////////////////////////////////////////////////
524-
/// @brief static
524+
/// @brief Returns synchronized Host and Device global timestamps.
525525
///
526526
/// @details
527527
/// - The application may call this function from simultaneous threads for

0 commit comments

Comments
 (0)