SWDEV-371332 - [ABI Break]change hipMemoryType enum

- match cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I8e57d7c1e43d8161db6b2e5a61a5fdedaa4b240e


[ROCm/hip commit: 6240eb30d4]
Этот коммит содержится в:
sdashmiz
2023-01-30 13:37:01 -05:00
коммит произвёл Rahul Garg
родитель 4ae9dadc3d
Коммит 8c08d1b862
+12 -14
Просмотреть файл
@@ -237,23 +237,21 @@ typedef struct hipDeviceProp_t {
/**
* hipMemoryType (for pointer attributes)
*
* @note hipMemoryType enum values are different from cudaMemoryType enum values.
* In this case, memory type translation for hipPointerGetAttributes needs to be handled properly
* on nvidia platform to get the correct memory type in CUDA. Developers should use #ifdef in order
* to assign the correct enum values depending on Nvidia or AMD platform.
* @note hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.
*
* @note cudaMemoryTypeUnregistered is currently not supported due to HIP functionality backward
* compatibility.
*/
typedef enum hipMemoryType {
hipMemoryTypeHost = 0, ///< Memory is physically located on host
hipMemoryTypeDevice = 1, ///< Memory is physically located on device. (see deviceId for
///< specific device)
hipMemoryTypeArray = 2, ///< Array memory, physically located on device. (see deviceId for
///< specific device)
hipMemoryTypeUnified = 3, ///< Not used currently
hipMemoryTypeManaged = 4 ///< Managed memory, automaticallly managed by the unified
///< memory system
hipMemoryTypeUnregistered = 0, ///< Unregistered memory
hipMemoryTypeHost = 1, ///< Memory is physically located on host
hipMemoryTypeDevice = 2, ///< Memory is physically located on device. (see deviceId for
///< specific device)
hipMemoryTypeManaged = 3, ///< Managed memory, automaticallly managed by the unified
///< memory system
///< place holder for new values.
hipMemoryTypeArray = 10, ///< Array memory, physically located on device. (see deviceId for
///< specific device)
hipMemoryTypeUnified = 11 ///< unified address space
} hipMemoryType;
/**