@@ -56,10 +56,10 @@ extern "C" {
5656#define hipEventInterprocess 0x4 ///< Event can support IPC. @warning - not supported in HIP.
5757
5858
59- #define hipHostAllocDefault 0x0
60- #define hipHostAllocPortable 0x1
61- #define hipHostAllocMapped 0x2
62- #define hipHostAllocWriteCombined 0x4
59+ #define hipHostMallocDefault 0x0
60+ #define hipHostMallocPortable 0x1
61+ #define hipHostMallocMapped 0x2
62+ #define hipHostMallocWriteCombined 0x4
6363
6464#define hipHostRegisterDefault 0x0
6565#define hipHostRegisterPortable 0x1
@@ -670,7 +670,7 @@ hipError_t hipMalloc(void** ptr, size_t size) ;
670670 * @param[in] size Requested memory size
671671 * @return Error code
672672 */
673- hipError_t hipMallocHost (void * * ptr , size_t size ) __attribute__((deprecated ("use hipHostAlloc instead" ))) ;
673+ hipError_t hipMallocHost (void * * ptr , size_t size ) __attribute__((deprecated ("use hipHostMalloc instead" ))) ;
674674
675675/**
676676 * @brief Allocate device accessible page locked host memory
@@ -680,7 +680,8 @@ hipError_t hipMallocHost(void** ptr, size_t size) __attribute__((deprecated("use
680680 * @param[in] flags Type of host memory allocation
681681 * @return Error code
682682 */
683- hipError_t hipHostAlloc (void * * ptr , size_t size , unsigned int flags ) ;
683+ hipError_t hipHostMalloc (void * * ptr , size_t size , unsigned int flags ) ;
684+ hipError_t hipHostAlloc (void * * ptr , size_t size , unsigned int flags ) __attribute__((deprecated ("use hipHostMalloc instead" ))) ;;
684685
685686/**
686687 * @brief Get Device pointer from Host Pointer allocated through hipHostAlloc
@@ -696,7 +697,7 @@ hipError_t hipHostGetDevicePointer(void** devPtr, void* hstPtr, size_t size) ;
696697 * @brief Get flags associated with host pointer
697698 *
698699 * @param[out] flagsPtr Memory location to store flags
699- * @param[in] hostPtr Host Pointer allocated through hipHostAlloc
700+ * @param[in] hostPtr Host Pointer allocated through hipHostMalloc
700701 * @return Error code
701702 */
702703hipError_t hipHostGetFlags (unsigned int * flagsPtr , void * hostPtr ) ;
@@ -786,7 +787,7 @@ hipError_t hipMemcpyToSymbol(const char* symbolName, const void *src, size_t siz
786787/**
787788 * @brief Copy data from src to dst asynchronously.
788789 *
789- * @warning If host or dest are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostAlloc to
790+ * @warning If host or dest are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to
790791 * allocate host memory that is transferred asynchronously.
791792 *
792793 * @param[out] dst Data being copy to
0 commit comments