Appearance
fundal_env
FUNDAL, environment global module.
Source: src/lib/fundal_env.F90
Dependencies
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
dev_allocs_live | integer(kind=I8P) | target | Live structured device allocations (dev_alloc not yet dev_free-d). |
dev_host_fallback | logical | target | Compiled for a device backend but running on the host. |
dev_bytes_live | integer(kind=I8P) | target | Bytes of live structured device allocations. |
devs_number | integer(kind=I4P) | target | Number of devices. |
dev_memory_avail | integer(kind=I8P) | target | Device memory FREE at init (bytes). |
dev_memory_total | integer(kind=I8P) | target | Device memory TOTAL, a machine property (bytes). |
local_comm | integer(kind=I4P) | target | Local communicator. |
mydev | integer(kind=I4P) | target | Device ID. |
myhos | integer(kind=I4P) | target | Host ID. |
FUNDAL_ERR_FPTR_DEV_NOT_ALLOCATED | integer(kind=I4P) | parameter | Device memory not allocated. |
FUNDAL_ERR_NO_DEVICE | integer(kind=I4P) | parameter | No device available, host fallback forbidden. |
FUNDAL_ERR_NOT_REGISTERED | integer(kind=I4P) | parameter | Pointer not allocated by FUNDAL. |
FUNDAL_ERR_DEV_ID_MISMATCH | integer(kind=I4P) | parameter | dev_id differs from the recorded device. |
FUNDAL_ERR_NOT_CONTIGUOUS | integer(kind=I4P) | parameter | Device argument of a copy not contiguous. |
FUNDAL_ERR_MEMCPY_FAILED | integer(kind=I4P) | parameter | The device runtime reported a failed copy. |
FUNDAL_DEVICE_HOST | integer(kind=I4P) | parameter | Device type: host (no offload device available). |
FUNDAL_DEVICE_GPU | integer(kind=I4P) | parameter | Device type: accelerator/GPU offload device. |
IDK | integer | parameter | Kind parameter for device type definitio. |
devtype | integer(kind=IDK) | target | Device 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ierr | integer(kind=I4P) | in | Error code. |
Call graph