Skip to content

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

NameTypeIntentAttributesDescription
unitinteger(kind=I4P)inoptionalOutput 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

NameTypeIntentAttributesDescription
allocsinteger(kind=I8P)outoptionalNumber of live allocations.
bytesinteger(kind=I8P)outoptionalBytes of live allocations.
dev_idinteger(kind=I4P)inoptionalCount 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

NameTypeIntentAttributesDescription
file_namecharacter(len=*)inFile name.
tagcharacter(len=*)inoptionalTag of current status.

Call graph