Free memory on the bound device, in bytes. Returns -1 when no
OpenACC runtime is present.
function mem_device_free_bytes() result(bytes) !! Free memory on the bound device, in bytes. Returns `-1` when no !! OpenACC runtime is present. 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_free_memory) bytes = int(prop, int64) #else bytes = -1_int64 #endif end function mem_device_free_bytes