Total memory of the device that the OpenACC runtime is bound to,
in bytes. Returns -1 when no OpenACC runtime is present
(CPU / gfortran / ifx builds).
function mem_device_total_bytes() result(bytes) !! Total memory of the device that the OpenACC runtime is bound to, !! in bytes. Returns `-1` when no OpenACC runtime is present !! (CPU / gfortran / ifx builds). integer(int64) :: bytes #ifdef RDB_HAS_OPENACC_RUNTIME integer(c_size_t) :: prop prop = acc_get_property(acc_get_device_num(acc_get_device_type()), & acc_get_device_type(), acc_property_memory) bytes = int(prop, int64) #else bytes = -1_int64 #endif end function mem_device_total_bytes