SWDEV-269246 - Implementation of hipDrvMemcpy2DUnaligned

Change-Id: I86fdd3b930cbd74c45cd31944f0ea52c0ff65a59
This commit is contained in:
Arya.Rafii
2021-02-26 09:57:36 -05:00
committato da Arya Rafii
parent 9f142f988d
commit 8cb232ddef
4 ha cambiato i file con 19 aggiunte e 0 eliminazioni
@@ -3508,6 +3508,14 @@ hipError_t hipLaunchKernel(const void* function_address,
void** args,
size_t sharedMemBytes __dparm(0),
hipStream_t stream __dparm(0));
/**
* Copies memory for 2D arrays.
*
* @param pCopy - Parameters for the memory copy
*
* @returns #hipSuccess, #hipErrorInvalidValue
*/
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D* pCopy);
//TODO: Move this to hip_ext.h
hipError_t hipExtLaunchKernel(const void* function_address, dim3 numBlocks, dim3 dimBlocks,
+1
Vedi File
@@ -265,6 +265,7 @@ hipExtStreamCreateWithCUMask
hipStreamGetPriority
hipMemcpy2DFromArray
hipMemcpy2DFromArrayAsync
hipDrvMemcpy2DUnaligned
hipMemcpyAtoH
hipMemcpyHtoA
hipMemcpyParam2DAsync
+1
Vedi File
@@ -96,6 +96,7 @@ global:
hipMemcpy2D;
hipMemcpy2DAsync;
hipMemcpy2DToArray;
hipDrvMemcpy2DUnaligned;
hipMemcpy3D;
hipMemcpy3DAsync;
hipDrvMemcpy3D;
+9
Vedi File
@@ -2392,3 +2392,12 @@ hipError_t hipFreeHost(void *ptr) {
HIP_RETURN(ihipFree(ptr));
}
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D* pCopy) {
HIP_INIT_API(hipDrvMemcpy2DUnaligned, pCopy);
HIP_MEMCPY3D desc = hip::getDrvMemcpy3DDesc(*pCopy);
HIP_RETURN(ihipMemcpyParam3D(&desc, nullptr));
}