From f0187ca1aeafc3935e1ee6c60711c1e0aa0e67ce Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 10 Mar 2022 16:46:23 +0530 Subject: [PATCH] SWDEV-317716 - Add support for hipDeviceGetUuid (#2528) Change-Id: I488edcd595b42e8119c923d3e7b3643b06c190de [ROCm/hip commit: a55d684e78b2e8e2656692c27ca6c1e69a78afd9] --- projects/hip/include/hip/hip_runtime_api.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index c55e509256..28f035a8b9 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -73,6 +73,9 @@ typedef struct { unsigned hasDynamicParallelism : 1; ///< Dynamic parallelism. } hipDeviceArch_t; +typedef struct hipUUID_t { + char bytes[16]; +} hipUUID; //--- // Common headers for both NVCC and HCC paths: @@ -998,6 +1001,18 @@ hipError_t hipDeviceComputeCapability(int* major, int* minor, hipDevice_t device * @returns #hipSuccess, #hipErrorInavlidDevice */ hipError_t hipDeviceGetName(char* name, int len, hipDevice_t device); +/** + * @brief Returns an UUID for the device.[BETA] + * @param [out] uuid + * @param [in] device + * + * @beta This API is marked as beta, meaning, while this is feature complete, + * it is still open to changes and may have outstanding issues. + * + * @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue, #hipErrorNotInitialized, + * #hipErrorDeInitialized + */ +hipError_t hipDeviceGetUuid(hipUUID* uuid, hipDevice_t device); /** * @brief Returns a value for attr of link between two devices * @param [out] value