Fix hipPointerGetAttributes for NVCC

이 커밋은 다음에 포함됨:
Rahul Garg
2019-04-23 03:22:25 +05:30
부모 1237a0b691
커밋 c0e0f0b7fd
+1 -1
파일 보기
@@ -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) {