Skip to content

fundal_dev_handling

FUNDAL, device handling module.

Source: src/lib/fundal_dev_handling.F90

Dependencies

Contents

Subroutines

dev_get_device_memory_info

Get the current device memory status.

fortran
subroutine dev_get_device_memory_info(mem_free, mem_total)

Arguments

NameTypeIntentAttributesDescription
mem_freeinteger(kind=I8P)outoptionalFree memory.
mem_totalinteger(kind=I8P)outoptionalTotal memory.

Call graph

dev_get_property_string

Return the value of a device-property for the specified device. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

fortran
subroutine dev_get_property_string(dev_num, string, prefix, memory)

Arguments

NameTypeIntentAttributesDescription
dev_numintegerinvalueDevice ID.
stringcharacter(len=*)outStringified device property.
prefixcharacter(len=*)inoptionalString prefix.
memoryinteger(kind=I8P)outoptionalDevice memory.

dev_set_device_num

Set the runtime for the specified device type and device number. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

fortran
subroutine dev_set_device_num(dev_num)

Arguments

NameTypeIntentAttributesDescription
dev_numintegerinvalueDevice ID.

dev_init

Initialize device. Note: backsafe backend does nothing, obviously.

fortran
subroutine dev_init()

Call graph

Functions

dev_get_device_num

Return the value of current device ID for the current thread. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

Returns: integer(kind=I4P)

fortran
function dev_get_device_num() result(device_num)

dev_get_device_type

Return the device type. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

Returns: integer(kind=I4P)

fortran
function dev_get_device_type() result(devtype_)

dev_get_host_num

Return the value of current host ID for the current thread. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

Returns: integer(kind=I4P)

fortran
function dev_get_host_num() result(host_num)

dev_get_num_devices

Return the number of available (non host) devices. Note: host fallback does not provide such a runtime routine, added only for seamless unified API.

Returns: integer(kind=I4P)

fortran
function dev_get_num_devices() result(devices_number)