IMSL Fortran Math Library
CHECK_BUFFER_ALLOCATION
Maintains buffer sizes on the NVIDIA device and performs one-time initialization.
Required Arguments
ISZ — An array of length 5. (Input/Output)
The elements of ISZ contain the following:
ISZ
Element
Description
ISZ(1)
Array size for the first array which appears in the argument list of the BLAS routine being called. If an error occurs while trying to allocate space for this array, an error flag is returned.
ISZ(2)
Array size for the second array which appears in the argument list of the BLAS routine being called. If an error occurs while trying to allocate space for this array, an error flag is returned.
ISZ(3)
Array size for the third array which appears in the argument list of the BLAS routine being called. If an error occurs while trying to allocate space for this array, an error flag is returned.
ISZ(4)
Not used.
ISZ(5)
The word size to be used when allocating the buffer. This element should be one of the public parameters in the CUDABLAS_LIBRARY module FSIZE = 4, DSIZE = 8, CSIZE = 8, or ZSIZE = 16.
If any of the first three elements of ISZ is set to zero on input then the GPU buffer for that argument is deallocated.
FORTRAN 90 Interface
Generic: CALL CHECK_BUFFER_ALLOCATION (ISZ)
Description
Note: Normally, this routine is not called by the user.
This routine is used internally to initialize the buffer sizes for the arrays on the NVIDIA device. Space is allocated for the arrays in initialization only. If an error occurs during the allocation of the first, second, or third positional array then an error flag is returned in ISZ(1), ISZ(2), or ISZ(3), respectively. If ISZ(1), ISZ(2), or ISZ(3) is set to zero on input then the space for the array designated by the respective element is deallocated.