Update hip_runtime_api.h
Use hipCUResultTohipError instead of hipCUDAErrorTohipError in hipMemsetD32 & hipMemsetD32Async.
[ROCm/clr commit: 38b7a43b43]
Este cometimento está contido em:
cometido por
GitHub
ascendente
e34b0ccd48
cometimento
34554f5730
@@ -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) {
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador