Home
last modified time | relevance | path

Searched refs:mem_available (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dstatus.cc43 uint64_t mem_available = 0L; in GetMemoryUsage() local
63 mem_available = atol(line.substr(pos2, pos1 - pos2).c_str()); in GetMemoryUsage()
76 if (status_count != 2 || mem_total == 0 || mem_available > mem_total) { in GetMemoryUsage()
81 …return (1.0 - static_cast<float>(static_cast<double>(mem_available) / static_cast<double>(mem_tota… in GetMemoryUsage()
/third_party/ltp/lib/
Dtst_memutils.c87 unsigned long long mem_available = 0; in tst_available_mem() local
90 &mem_available)) { in tst_available_mem()
91 mem_available = SAFE_READ_MEMINFO("MemFree:") in tst_available_mem()
95 return mem_available; in tst_available_mem()
/third_party/mesa3d/src/util/
Dos_misc.c307 int64_t mem_available; in os_get_available_system_memory()
308 size_t len = sizeof(mem_available); in os_get_available_system_memory()
311 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()
318 *size = MIN2(mem_available, rl.rlim_cur); in os_get_available_system_memory()
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c416 size_t mem_available; in mem_read() local
424 mem_available = (context->hidden.mem.stop - context->hidden.mem.here); in mem_read()
425 if (total_bytes > mem_available) { in mem_read()
426 total_bytes = mem_available; in mem_read()
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c2587 uint64_t mem_available = 0; in anv_get_memory_budget() local
2591 mem_available = device->vram.available; in anv_get_memory_budget()
2594 mem_available = device->sys.available; in anv_get_memory_budget()
2598 VkDeviceSize available_prop = mem_available * heap_proportion; in anv_get_memory_budget()