diff --git a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h index ec3e8e1e0a..8ef1f234da 100644 --- a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h +++ b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h @@ -369,6 +369,11 @@ typedef enum cudaResourceViewFormat hipResourceViewFormat; #define hipHostMallocCoherent 0x0 #define hipHostMallocNonCoherent 0x0 +#define hipHostAllocDefault cudaHostAllocDefault +#define hipHostAllocPortable cudaHostAllocPortable +#define hipHostAllocMapped cudaHostAllocMapped +#define hipHostAllocWriteCombined cudaHostAllocWriteCombined + #define hipMemAttachGlobal cudaMemAttachGlobal #define hipMemAttachHost cudaMemAttachHost #define hipMemAttachSingle cudaMemAttachSingle @@ -1732,7 +1737,6 @@ inline static hipError_t hipMemAllocHost(void** ptr, size_t size) { return hipCUResultTohipError(cuMemAllocHost(ptr, size)); } -__HIP_DEPRECATED_MSG("use hipHostMalloc instead") inline static hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags) { return hipCUDAErrorTohipError(cudaHostAlloc(ptr, size, flags)); } @@ -1840,7 +1844,6 @@ inline static hipError_t hipHostUnregister(void* ptr) { return hipCUDAErrorTohipError(cudaHostUnregister(ptr)); } -__HIP_DEPRECATED_MSG("use hipHostFree instead") inline static hipError_t hipFreeHost(void* ptr) { return hipCUDAErrorTohipError(cudaFreeHost(ptr)); }