File tree Expand file tree Collapse file tree 5 files changed +12
-17
lines changed
include/hydrogen/device/gpu Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 21
21
auto h_check_cuda_error_code__ = cmd; \
22
22
H_ASSERT (h_check_cuda_error_code__ == cudaSuccess, \
23
23
::hydrogen::CUDAError, \
24
- (cudaDeviceReset (), \
25
24
::hydrogen::cuda::BuildCUDAErrorMessage ( \
26
- #cmd, h_check_cuda_error_code__))); \
25
+ #cmd, h_check_cuda_error_code__)); \
27
26
H_SYNC_CUDA (); \
28
27
} while (false )
29
28
Original file line number Diff line number Diff line change 16
16
auto h_check_cublas_err_code__ = cmd; \
17
17
H_ASSERT (h_check_cublas_err_code__ == CUBLAS_STATUS_SUCCESS, \
18
18
cuBLASError, \
19
- (cudaDeviceReset (), \
20
- cublas::BuildcuBLASErrorMessage ( \
21
- #cmd, \
22
- h_check_cublas_err_code__))); \
19
+ cublas::BuildcuBLASErrorMessage ( \
20
+ #cmd, \
21
+ h_check_cublas_err_code__)); \
23
22
H_SYNC_CUDA (); \
24
23
} while (false )
25
24
Original file line number Diff line number Diff line change 16
16
auto h_check_cusolver_err_code__ = cmd; \
17
17
H_ASSERT (h_check_cusolver_err_code__ == CUSOLVER_STATUS_SUCCESS, \
18
18
cuSOLVERError, \
19
- (cudaDeviceReset (), \
20
- cusolver::BuildcuSOLVERErrorMessage ( \
21
- #cmd, \
22
- h_check_cusolver_err_code__))); \
19
+ cusolver::BuildcuSOLVERErrorMessage ( \
20
+ #cmd, \
21
+ h_check_cusolver_err_code__)); \
23
22
H_SYNC_CUDA (); \
24
23
} while (false )
25
24
Original file line number Diff line number Diff line change 21
21
auto h_check_hip_error_code__ = cmd; \
22
22
H_ASSERT (h_check_hip_error_code__ == hipSuccess, \
23
23
::hydrogen::HIPError, \
24
- (hipDeviceReset (), \
25
- ::hydrogen::rocm::BuildHipErrorMessage ( \
26
- #cmd, h_check_hip_error_code__))); \
24
+ ::hydrogen::rocm::BuildHipErrorMessage ( \
25
+ #cmd, h_check_hip_error_code__)); \
27
26
H_SYNC_HIP (); \
28
27
} while (false )
29
28
Original file line number Diff line number Diff line change 16
16
auto h_check_rocblas_err_code__ = cmd; \
17
17
H_ASSERT (h_check_rocblas_err_code__ == rocblas_status_success, \
18
18
rocBLASError, \
19
- (hipDeviceReset (), \
20
- rocblas::BuildrocBLASErrorMessage ( \
21
- #cmd, \
22
- h_check_rocblas_err_code__))); \
19
+ rocblas::BuildrocBLASErrorMessage ( \
20
+ #cmd, \
21
+ h_check_rocblas_err_code__)); \
23
22
H_SYNC_HIP (); \
24
23
} while (false )
25
24
You can’t perform that action at this time.
0 commit comments