Fortran-wrapper for getting CUDA/HIP streams' priority range.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | least | |||
integer, | intent(out) | :: | greatest |
SUBROUTINE acc_stream_priority_range(least, greatest)
!! Fortran-wrapper for getting CUDA/HIP streams' priority range.
INTEGER, INTENT(OUT) :: least, greatest
#if ! defined (__DBCSR_ACC)
least = -1; greatest = -1 ! assign intent-out arguments to silence compiler warnings
DBCSR_ABORT("__DBCSR_ACC not compiled in.")
#else
INTEGER :: istat
istat = acc_interface_stream_priority_range(least, greatest)
IF (istat /= 0) &
DBCSR_ABORT("acc_stream_priority_range failed")
#endif
END SUBROUTINE acc_stream_priority_range