Merge pull request #1039 from gargrahul/fix_ptrgetattr_nvcc

Fix hipPointerGetAttributes for NVCC

[ROCm/hip commit: 2975221560]
Этот коммит содержится в:
Maneesh Gupta
2019-04-24 16:50:18 +05:30
коммит произвёл GitHub
родитель c01236f679 be49602b29
Коммит 5235da375e
+1 -1
Просмотреть файл
@@ -873,7 +873,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) {