Source symbols: src/allocator.cpp
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: master@dda2e28bae2a084760361197d87f06e685604e52 · 2026-07-13T07:13:46Z
- Declarations: 27
- Referenced calls: 97
Declared symbols
PoolAllocatorPrivate— class at line 19UnlockedPoolAllocatorPrivate— class at line 202inline— static at line 369; referencesround_upinline— static at line 374; referencesround_downinline— static at line 579; referencesleast_common_multipleVkBlobAllocatorPrivate— class at line 596int— const at line 699; referencessize,for,begin,end,eraseVkPhysicalDeviceMemoryProperties— const at line 766; referencesphysicalDeviceMemoryPropertiesint— const at line 834; referencessize,forsize_t— const at line 961; referencesmax,alignSize,size,for,begin,end,vkBindImageMemory,vkdevice,create_imageview,erasesize_t— const at line 962; referencesmax,alignSize,size,for,begin,end,vkBindImageMemory,vkdevice,create_imageview,eraseint— const at line 966; referencessize,for,begin,end,alignSize,vkBindImageMemory,vkdevice,create_imageview,eraseVkPhysicalDeviceMemoryProperties— const at line 1045; referencesphysicalDeviceMemoryPropertiesint— const at line 1116; referencessize,forVkWeightAllocatorPrivate— class at line 1195; referencesdefinedvoid— static at line 1328; referencesfastMalloc_with_alignment,_aligned_malloc,elif,defined,posix_memalign,memalign,malloc,sizeof,alignPtrint— const at line 1355; referencessize,forVkPhysicalDeviceMemoryProperties— const at line 1423; referencesphysicalDeviceMemoryPropertiesVkPhysicalDeviceMemoryProperties— const at line 1576; referencesphysicalDeviceMemoryPropertiesVkPhysicalDeviceMemoryProperties— const at line 1749; referencesphysicalDeviceMemoryPropertiessize_t— const at line 1808; referencesmax,alignSize,size,for,vkBindImageMemory,vkdevice,create_imageviewsize_t— const at line 1809; referencesmax,alignSize,size,for,vkBindImageMemory,vkdevice,create_imageviewint— const at line 1813; referencessize,for,alignSize,vkBindImageMemory,vkdevice,create_imageviewVkPhysicalDeviceMemoryProperties— const at line 1950; referencesphysicalDeviceMemoryPropertiesVkStagingAllocatorPrivate— class at line 2020size_t— const at line 2156; referencesmalloc,fastFree,freeVkWeightStagingAllocatorPrivate— class at line 2193
File-level call references
Allocator— line 15PoolAllocator— line 30clear— line 39empty— line 41NCNN_LOGE— line 43begin— line 45for— line 46end— line 46lock— line 69fastFree— line 75unlock— line 79set_size_compare_ratio— line 82set_size_drop_threshold— line 93fastMalloc— line 98erase— line 113push_back— line 119make_pair— line 119size— line 136UnlockedPoolAllocator— line 211VkAllocator— line 350vkdev— line 351round_up— line 369round_down— line 374flush— line 379non_coherent_atom_size— line 388vkFlushMappedMemoryRanges— line 391vkdevice— line 391invalidate— line 401vkInvalidateMappedMemoryRanges— line 413create_buffer— line 423vkCreateBuffer— line 436allocate_memory— line 446vkAllocateMemory— line 455allocate_dedicated_memory— line 465allocate_import_host_memory— line 491create_image— line 517vkCreateImage— line 539create_imageview— line 549vkCreateImageView— line 569least_common_multiple— line 579VkBlobAllocator— line 608buffer_offset_alignment— line 611buffer_image_granularity— line 612type— line 614memory_map_alignment— line 620support_VK_KHR_robustness2— line 624support_VK_EXT_robustness2— line 624queryRobustness2Properties— line 626alignSize— line 630vkUnmapMemory— line 666vkDestroyBuffer— line 668vkFreeMemory— line 669max— line 743vkGetBufferMemoryRequirements— line 754find_memory_index— line 762physicalDeviceMemoryProperties— line 766is_mappable— line 780is_coherent— line 781vkBindBufferMemory— line 793vkMapMemory— line 798push_front— line 890max_image_dimension_3d— line 942vkGetImageMemoryRequirements— line 959vkBindImageMemory— line 994vkDestroyImage— line 1076vkDestroyImageView— line 1134defined— line 1209VkWeightAllocator— line 1214support_VK_EXT_external_memory_host— line 1236queryExternalMemoryHostProperties— line 1238fastMalloc_with_alignment— line 1328_aligned_malloc— line 1331elif— line 1332posix_memalign— line 1334memalign— line 1338malloc— line 1340sizeof— line 1340alignPtr— line 1343support_VK_KHR_get_memory_requirements2— line 1391support_VK_KHR_dedicated_allocation— line 1391vkGetBufferMemoryRequirements2KHR— line 1407resizable_bar_enabled— line 1434vkGetMemoryHostPointerPropertiesEXT— line 1500vkGetImageMemoryRequirements2KHR— line 1733VkStagingAllocator— line 2027free— line 2188VkWeightStagingAllocator— line 2198VkAndroidHardwareBufferImageAllocator— line 2283init— line 2288vkDestroySamplerYcbcrConversionKHR— line 2295vkBindImageMemory2KHR— line 2397AHardwareBuffer_describe— line 2461vkGetAndroidHardwareBufferPropertiesANDROID— line 2472vkCreateSamplerYcbcrConversionKHR— line 2497width— line 2507height— line 2512external_format— line 2517
Source: src/allocator.cpp