Documentation for module acc_stream

Accelerator support

source: acc_stream.F
Loading...

public Types:

acc_stream_type
...

public Subroutines/Functions:

FUNCTION
LOGICAL
acc_stream_associated (this)
Checks if a streams is associated
FUNCTION
LOGICAL
acc_stream_cptr (this)
Returns C-pointer of given stream.
Fortran-wrapper for cudaStreamCreate.
Fortran-wrapper for cudaStreamDestroy.
FUNCTION
LOGICAL
acc_stream_equal (this, other)
Checks if two streams are equal
Fortran-wrapper for cudaDeviceGetStreamPriorityRange.
Fortran-wrapper for cudaStreamSynchronize.

public Types:

TYPE :: acc_stream_type

...


INTEGER
:: dummy = 1 ...

FUNCTIONacc_stream_associated(this)

Checks if a streams is associated

Return Value ::
LOGICAL
true if associated, false otherwise
Arguments:
INTENT(in)
:: this stream

FUNCTIONacc_stream_cptr(this)

Returns C-pointer of given stream.

Return Value ::
LOGICAL
false (accelerator support is not enabled)
Arguments:
INTEGER,
INTENT(in)
:: this stream ID

SUBROUTINEacc_stream_create(this, name, priority)

Fortran-wrapper for cudaStreamCreate.

Arguments:
INTENT(out)
:: this stream
CHARACTER(*),
INTENT(in)
:: name stream name
INTEGER,
INTENT(in),
OPTIONAL
:: priority stream priority

SUBROUTINEacc_stream_destroy(this)

Fortran-wrapper for cudaStreamDestroy.

Arguments:
INTENT(inout)
:: this stream

FUNCTIONacc_stream_equal(this, other)

Checks if two streams are equal

Return Value ::
LOGICAL
true if equal, false otherwise
Arguments:
INTENT(in)
:: this first stream
INTENT(in)
:: other second stream

SUBROUTINEacc_stream_priority_range(least, greatest)

Fortran-wrapper for cudaDeviceGetStreamPriorityRange.

Arguments:
INTEGER,
INTENT(out)
:: least least priority
INTEGER,
INTENT(out)
:: greatest greatest priroity

SUBROUTINEacc_stream_synchronize(this)

Fortran-wrapper for cudaStreamSynchronize.

Arguments:
INTENT(in)
:: this stream