Skip to content

fundal_env ​

FUNDAL, environment global module.

Source: src/lib/fundal_env.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
dev_allocs_liveinteger(kind=I8P)targetLive structured device allocations (dev_alloc not yet dev_free-d).
dev_host_fallbacklogicaltargetCompiled for a device backend but running on the host.
dev_bytes_liveinteger(kind=I8P)targetBytes of live structured device allocations.
devs_numberinteger(kind=I4P)targetNumber of devices.
dev_memory_availinteger(kind=I8P)targetDevice memory FREE at init (bytes).
dev_memory_totalinteger(kind=I8P)targetDevice memory TOTAL, a machine property (bytes).
local_comminteger(kind=I4P)targetLocal communicator.
mydevinteger(kind=I4P)targetDevice ID.
myhosinteger(kind=I4P)targetHost ID.
FUNDAL_ERR_FPTR_DEV_NOT_ALLOCATEDinteger(kind=I4P)parameterDevice memory not allocated.
FUNDAL_ERR_NO_DEVICEinteger(kind=I4P)parameterNo device available, host fallback forbidden.
FUNDAL_ERR_NOT_REGISTEREDinteger(kind=I4P)parameterPointer not allocated by FUNDAL.
FUNDAL_ERR_DEV_ID_MISMATCHinteger(kind=I4P)parameterdev_id differs from the recorded device.
FUNDAL_ERR_NOT_CONTIGUOUSinteger(kind=I4P)parameterDevice argument of a copy not contiguous.
FUNDAL_ERR_MEMCPY_FAILEDinteger(kind=I4P)parameterThe device runtime reported a failed copy.
FUNDAL_DEVICE_HOSTinteger(kind=I4P)parameterDevice type: host (no offload device available).
FUNDAL_DEVICE_GPUinteger(kind=I4P)parameterDevice type: accelerator/GPU offload device.
IDKintegerparameterKind parameter for device type definitio.
devtypeinteger(kind=IDK)targetDevice type.

Functions ​

dev_error_message ​

Return the description of a FUNDAL error code (as returned through ierr).

Attributes: pure

Returns: character(len=:)

fortran
function dev_error_message(ierr) result(msg)

Arguments

NameTypeIntentAttributesDescription
ierrinteger(kind=I4P)inError code.

Call graph