Appearance
fundal
FUNDAL, Fortran UNified Device Acceleration Library.
Source: src/lib/fundal.F90
Dependencies
Contents
Subroutines
dev_alloc_report
Write the live structured allocations (address, bytes, device, label) and a summary line, e.g. at teardown to find leaks. Backend independent: it reads the allocation registry, it does not query the device runtime.
fortran
subroutine dev_alloc_report(unit)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
unit | integer(kind=I4P) | in | optional | Output unit (default standard output). |
Call graph
dev_get_alloc_stats
Return the number and the bytes of live structured device allocations, i.e. made by dev_alloc/dev_alloc_replace and not yet released by dev_free, optionally only those living on one device. Backend independent: it reads the allocation registry, it does not query the device runtime.
fortran
subroutine dev_get_alloc_stats(allocs, bytes, dev_id)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
allocs | integer(kind=I8P) | out | optional | Number of live allocations. |
bytes | integer(kind=I8P) | out | optional | Bytes of live allocations. |
dev_id | integer(kind=I4P) | in | optional | Count only allocations living on this device. |
Call graph
save_memory_status
Save the current device-memory status into a file. File is accessed in append position.
fortran
subroutine save_memory_status(file_name, tag)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
file_name | character(len=*) | in | File name. | |
tag | character(len=*) | in | optional | Tag of current status. |
Call graph