From 4bd7079059389df2c8df69197077b673fad75dde Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Thu, 12 Oct 2023 04:35:09 +0000 Subject: [PATCH] SWDEV-408180 - Add a new hipMemcpyKind Header changes to support new hipMemcpyDeviceToDeviceNoCU Change-Id: I7c15d6e73eeb467d46c582a80c015c5d545df0dc [ROCm/hip commit: 5b88d8787d452d73a075d67cc5ad15116667d9e6] --- projects/hip/include/hip/driver_types.h | 13 ++++++----- projects/hip/include/hip/hip_runtime_api.h | 26 +++++++++++----------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/projects/hip/include/hip/driver_types.h b/projects/hip/include/hip/driver_types.h index b33e030b78..3551f9d596 100644 --- a/projects/hip/include/hip/driver_types.h +++ b/projects/hip/include/hip/driver_types.h @@ -331,12 +331,13 @@ typedef struct HIP_RESOURCE_VIEW_DESC_st */ #if !defined(__HIPCC_RTC__) typedef enum hipMemcpyKind { - hipMemcpyHostToHost = 0, ///< Host-to-Host Copy - hipMemcpyHostToDevice = 1, ///< Host-to-Device Copy - hipMemcpyDeviceToHost = 2, ///< Device-to-Host Copy - hipMemcpyDeviceToDevice = 3, ///< Device-to-Device Copy - hipMemcpyDefault = - 4 ///< Runtime will automatically determine copy-kind based on virtual addresses. + hipMemcpyHostToHost = 0, ///< Host-to-Host Copy + hipMemcpyHostToDevice = 1, ///< Host-to-Device Copy + hipMemcpyDeviceToHost = 2, ///< Device-to-Host Copy + hipMemcpyDeviceToDevice = 3, ///< Device-to-Device Copy + hipMemcpyDefault = 4, ///< Runtime will automatically determine + ///