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