@@ -165,8 +165,8 @@ typedef struct offload_code_location_t {
165165///
166166/// @returns
167167/// - ::OFFLOAD_RESULT_SUCCESS
168- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
169- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
168+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
169+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
170170/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
171171/// - ::OFFLOAD_ERRC_INVALID_NULL_POINTER
172172OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadInit ();
@@ -181,8 +181,8 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadInit();
181181///
182182/// @returns
183183/// - ::OFFLOAD_RESULT_SUCCESS
184- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
185- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
184+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
185+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
186186/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
187187/// - ::OFFLOAD_ERRC_INVALID_NULL_POINTER
188188OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadShutDown ();
@@ -196,8 +196,8 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadShutDown();
196196///
197197/// @returns
198198/// - ::OFFLOAD_RESULT_SUCCESS
199- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
200- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
199+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
200+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
201201/// - ::OFFLOAD_ERRC_INVALID_SIZE
202202/// + `NumEntries == 0`
203203/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
@@ -219,8 +219,8 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadPlatformGet(
219219///
220220/// @returns
221221/// - ::OFFLOAD_RESULT_SUCCESS
222- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
223- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
222+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
223+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
224224/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
225225/// - ::OFFLOAD_ERRC_INVALID_NULL_POINTER
226226/// + `NULL == NumPlatforms`
@@ -268,14 +268,12 @@ typedef enum offload_platform_backend_t {
268268///
269269/// @details
270270/// - `offloadPlatformGetInfoSize` can be used to query the storage size
271- /// required for the given query.The application may call this function from
272- /// simultaneous threads.
273- /// - The implementation of this function should be lock-free.
271+ /// required for the given query.
274272///
275273/// @returns
276274/// - ::OFFLOAD_RESULT_SUCCESS
277- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
278- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
275+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
276+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
279277/// - ::OFFLOAD_ERRC_UNSUPPORTED_ENUMERATION
280278/// + If `PropName` is not supported by the platform.
281279/// - ::OFFLOAD_ERRC_INVALID_SIZE
@@ -304,13 +302,11 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadPlatformGetInfo(
304302/// @brief Returns the storage size of the given platform query
305303///
306304/// @details
307- /// - The application may call this function from simultaneous threads.
308- /// - The implementation of this function should be lock-free.
309305///
310306/// @returns
311307/// - ::OFFLOAD_RESULT_SUCCESS
312- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
313- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
308+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
309+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
314310/// - ::OFFLOAD_ERRC_UNSUPPORTED_ENUMERATION
315311/// + If `PropName` is not supported by the platform.
316312/// - ::OFFLOAD_ERRC_INVALID_PLATFORM
@@ -369,8 +365,8 @@ typedef enum offload_device_info_t {
369365///
370366/// @returns
371367/// - ::OFFLOAD_RESULT_SUCCESS
372- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
373- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
368+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
369+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
374370/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
375371/// + `NULL == Platform`
376372/// - ::OFFLOAD_ERRC_INVALID_NULL_POINTER
@@ -387,13 +383,11 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadDeviceGetCount(
387383/// @details
388384/// - Multiple calls to this function will return identical device handles,
389385/// in the same order.
390- /// - The application may call this function from simultaneous threads, the
391- /// implementation must be thread-safe
392386///
393387/// @returns
394388/// - ::OFFLOAD_RESULT_SUCCESS
395- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
396- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
389+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
390+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
397391/// - ::OFFLOAD_ERRC_INVALID_SIZE
398392/// + `NumEntries == 0`
399393/// - ::OFFLOAD_ERRC_INVALID_NULL_HANDLE
@@ -415,13 +409,11 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadDeviceGet(
415409/// @brief Queries the given property of the device
416410///
417411/// @details
418- /// - The application may call this function from simultaneous threads.
419- /// - The implementation of this function should be lock-free.
420412///
421413/// @returns
422414/// - ::OFFLOAD_RESULT_SUCCESS
423- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
424- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
415+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
416+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
425417/// - ::OFFLOAD_ERRC_UNSUPPORTED_ENUMERATION
426418/// + If `PropName` is not supported by the device.
427419/// - ::OFFLOAD_ERRC_INVALID_SIZE
@@ -449,13 +441,11 @@ OFFLOAD_APIEXPORT offload_result_t OFFLOAD_APICALL offloadDeviceGetInfo(
449441/// @brief Returns the storage size of the given device query
450442///
451443/// @details
452- /// - The application may call this function from simultaneous threads.
453- /// - The implementation of this function should be lock-free.
454444///
455445/// @returns
456446/// - ::OFFLOAD_RESULT_SUCCESS
457- /// - ::OFFLOAD_RESULT_ERROR_UNINITIALIZED
458- /// - ::OFFLOAD_RESULT_ERROR_DEVICE_LOST
447+ /// - ::OFFLOAD_ERRC_UNINITIALIZED
448+ /// - ::OFFLOAD_ERRC_DEVICE_LOST
459449/// - ::OFFLOAD_ERRC_UNSUPPORTED_ENUMERATION
460450/// + If `PropName` is not supported by the device.
461451/// - ::OFFLOAD_ERRC_INVALID_DEVICE
0 commit comments