| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_int) | :: | gpuError_t |
subroutine gpuCheck(gpuError_t)
use iso_c_binding
implicit none
integer(c_int) :: gpuError_t
if(gpuError_t /= hipSuccess) then
write(*,*) "GPU ERROR: Error code = ",gpuError_t
call exit(gpuError_t)
endif
endsubroutine gpuCheck