From be49602b292e039db21b56750e4d9752f71f5109 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 23 Apr 2019 03:22:25 +0530 Subject: [PATCH] Fix hipPointerGetAttributes for NVCC [ROCm/hip commit: 69a3d6b72ad240561e76103b1de396ec14c154e5] --- projects/hip/include/hip/nvcc_detail/hip_runtime_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h index 4d84cfbc51..e5c8488079 100644 --- a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h @@ -866,7 +866,7 @@ inline static hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(int* numBl return hipCUDAErrorTohipError(cerror); } -inline static hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, void* ptr) { +inline static hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void* ptr) { struct cudaPointerAttributes cPA; hipError_t err = hipCUDAErrorTohipError(cudaPointerGetAttributes(&cPA, ptr)); if (err == hipSuccess) {