SWDEV-408180 - Add a new hipMemcpyKind
Header changes to support new hipMemcpyDeviceToDeviceNoCU
Change-Id: I7c15d6e73eeb467d46c582a80c015c5d545df0dc
[ROCm/hip commit: 5b88d8787d]
This commit is contained in:
@@ -331,12 +331,13 @@ typedef struct HIP_RESOURCE_VIEW_DESC_st
|
|||||||
*/
|
*/
|
||||||
#if !defined(__HIPCC_RTC__)
|
#if !defined(__HIPCC_RTC__)
|
||||||
typedef enum hipMemcpyKind {
|
typedef enum hipMemcpyKind {
|
||||||
hipMemcpyHostToHost = 0, ///< Host-to-Host Copy
|
hipMemcpyHostToHost = 0, ///< Host-to-Host Copy
|
||||||
hipMemcpyHostToDevice = 1, ///< Host-to-Device Copy
|
hipMemcpyHostToDevice = 1, ///< Host-to-Device Copy
|
||||||
hipMemcpyDeviceToHost = 2, ///< Device-to-Host Copy
|
hipMemcpyDeviceToHost = 2, ///< Device-to-Host Copy
|
||||||
hipMemcpyDeviceToDevice = 3, ///< Device-to-Device Copy
|
hipMemcpyDeviceToDevice = 3, ///< Device-to-Device Copy
|
||||||
hipMemcpyDefault =
|
hipMemcpyDefault = 4, ///< Runtime will automatically determine
|
||||||
4 ///< Runtime will automatically determine copy-kind based on virtual addresses.
|
///<copy-kind based on virtual addresses.
|
||||||
|
hipMemcpyDeviceToDeviceNoCU = 1024 ///< Device-to-Device Copy without using compute units
|
||||||
} hipMemcpyKind;
|
} hipMemcpyKind;
|
||||||
typedef struct hipPitchedPtr {
|
typedef struct hipPitchedPtr {
|
||||||
void* ptr;
|
void* ptr;
|
||||||
|
|||||||
@@ -3740,7 +3740,7 @@ hipError_t hipHostFree(void* ptr);
|
|||||||
* @param[out] dst Data being copy to
|
* @param[out] dst Data being copy to
|
||||||
* @param[in] src Data being copy from
|
* @param[in] src Data being copy from
|
||||||
* @param[in] sizeBytes Data size in bytes
|
* @param[in] sizeBytes Data size in bytes
|
||||||
* @param[in] copyType Memory copy type
|
* @param[in] kind Kind of transfer
|
||||||
* @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown
|
* @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown
|
||||||
*
|
*
|
||||||
* @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,
|
* @see hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost,
|
||||||
@@ -3758,7 +3758,7 @@ hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind
|
|||||||
* @param[out] dst Data being copy to
|
* @param[out] dst Data being copy to
|
||||||
* @param[in] src Data being copy from
|
* @param[in] src Data being copy from
|
||||||
* @param[in] sizeBytes Data size in bytes
|
* @param[in] sizeBytes Data size in bytes
|
||||||
* @param[in] copyType Memory copy type
|
* @param[in] kind Kind of transfer
|
||||||
* @param[in] stream Valid stream
|
* @param[in] stream Valid stream
|
||||||
* @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown, #hipErrorContextIsDestroyed
|
* @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown, #hipErrorContextIsDestroyed
|
||||||
*
|
*
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user