Update hip_runtime_api.h

Use hipCUResultTohipError instead of hipCUDAErrorTohipError in hipMemsetD32 & hipMemsetD32Async.
This commit is contained in:
Maneesh Gupta
2019-03-05 12:10:01 +05:30
committato da GitHub
parent 8b7baa0bd9
commit 38b7a43b43
@@ -656,7 +656,7 @@ inline static hipError_t hipMemset(void* devPtr, int value, size_t count) {
}
inline static hipError_t hipMemsetD32(hipDeviceptr_t devPtr, int value, size_t count) {
return hipCUDAErrorTohipError(cuMemsetD32(devPtr, value, count));
return hipCUResultTohipError(cuMemsetD32(devPtr, value, count));
}
inline static hipError_t hipMemsetAsync(void* devPtr, int value, size_t count,
@@ -666,7 +666,7 @@ inline static hipError_t hipMemsetAsync(void* devPtr, int value, size_t count,
inline static hipError_t hipMemsetD32Async(hipDeviceptr_t devPtr, int value, size_t count,
hipStream_t stream __dparm(0)) {
return hipCUDAErrorTohipError(cuMemsetD32Async(devPtr, value, count, stream));
return hipCUResultTohipError(cuMemsetD32Async(devPtr, value, count, stream));
}
inline static hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t sizeBytes) {