fclCreateContext Interface

public interface fclCreateContext

Generic interface to create a context


Contents


Functions

public module function fclCreateContextWithPlatform(platform) result(ctx)

Create a context with fclPlatform object

Arguments

Type IntentOptional Attributes Name
type(fclPlatform), intent(inout), target :: platform

Return Value type(fclContext), target

public module function fclCreateContextWithVendor(vendor) result(ctx)

Create a context with the first platform where the vendor property contains a specified string (case-insensitive).

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: vendor

String with which to match platform vendor. Separate multiple vendors with commas. First matching vendor in list is used. Matching is case-insensitive substring.

e.g. vendor='i' matches 'nvidia' and 'intel' platforms

e.g. vendor='nvidia,intel' matches nvidia platform if available, then intel platform if available, then fails fatally if neither are available.

Return Value type(fclContext), target