Update hip_runtime_api.h
Use hipCUResultTohipError instead of hipCUDAErrorTohipError in hipMemsetD32 & hipMemsetD32Async.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user