SWDEV-508963 - Change hipMemcpy subset of methods to use const qualifier for src (#139) (#418)

Change-Id: Ia5b68bacff634d3d9e5757f515bac50887895bc3

[ROCm/clr commit: c0c3aa3637]
Этот коммит содержится в:
Betigeri, Sourabh authored and GitHub committed 2025-05-29 13:07:51 +05:30
1 родитель 88c3041e15
Коммит 328aeb758c
7 files changed
+16 -16

No files matched your search

+2 -2
Просмотреть файл
@@ -590,8 +590,8 @@ typedef hipError_t (*t_hipMemcpyFromSymbolAsync)(void* dst, const void* symbol,
hipStream_t stream);
typedef hipError_t (*t_hipMemcpyHtoA)(hipArray_t dstArray, size_t dstOffset, const void* srcHost,
size_t count);
typedef hipError_t (*t_hipMemcpyHtoD)(hipDeviceptr_t dst, void* src, size_t sizeBytes);
typedef hipError_t (*t_hipMemcpyHtoDAsync)(hipDeviceptr_t dst, void* src, size_t sizeBytes,
typedef hipError_t (*t_hipMemcpyHtoD)(hipDeviceptr_t dst, const void* src, size_t sizeBytes);
typedef hipError_t (*t_hipMemcpyHtoDAsync)(hipDeviceptr_t dst, const void* src, size_t sizeBytes,
hipStream_t stream);
typedef hipError_t (*t_hipMemcpyParam2D)(const hip_Memcpy2D* pCopy);
typedef hipError_t (*t_hipMemcpyParam2DAsync)(const hip_Memcpy2D* pCopy, hipStream_t stream);
+2 -2
Просмотреть файл
@@ -3133,12 +3133,12 @@ typedef struct hip_api_data_s {
} hipMemcpyHtoAAsync;
struct {
hipDeviceptr_t dst;
void* src;
const void* src;
size_t sizeBytes;
} hipMemcpyHtoD;
struct {
hipDeviceptr_t dst;
void* src;
const void* src;
size_t sizeBytes;
hipStream_t stream;
} hipMemcpyHtoDAsync;