Fix hipPointerGetAttributes for NVCC

Esse commit está contido em:
Rahul Garg committed 2019-04-23 03:22:25 +05:30
1 pai 5843530a06
commit 69a3d6b72a
1 file changed
+1 -1
+1 -1
Ver Arquivo
@@ -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) {