Fixed review comment

[ROCm/clr commit: 71a5a0cb42]
Cette révision appartient à :
Rahul Garg
2017-10-02 17:29:08 +05:30
Parent f32bb0e089
révision bc675b15b8
-7
Voir le fichier
@@ -343,17 +343,10 @@ inline static hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int fla
return hipCUDAErrorTohipError(cudaHostAlloc(ptr, size, flags));
}
#if 0 //__cplusplus
inline static hipError_t hipMallocArray(hipArray** array, const hipChannelFormatDesc* desc,
size_t width, size_t height = 0, unsigned int flags = hipArrayDefault) {
return hipCUDAErrorTohipError(cudaMallocArray(array, desc, width, height, flags));
}
#else
inline static hipError_t hipMallocArray(hipArray** array, const struct hipChannelFormatDesc* desc,
size_t width, size_t height, unsigned int flags __dparm(hipArrayDefault)) {
return hipCUDAErrorTohipError(cudaMallocArray(array, desc, width, height, flags));
}
#endif
inline static hipError_t hipFreeArray(hipArray* array) {
return hipCUDAErrorTohipError(cudaFreeArray(array));