Lines Matching refs:MemoryPool
99 auto L = [](hsa_amd_memory_pool_t MemoryPool, void *Data) -> hsa_status_t { in amd_agent_iterate_memory_pools() argument
101 return (*Unwrapped)(MemoryPool); in amd_agent_iterate_memory_pools()
142 KernelArgPool(uint32_t KernargSegmentSize, hsa_amd_memory_pool_t &MemoryPool) in KernelArgPool()
149 MemoryPool, kernargSizeIncludingImplicit() * MAX_NUM_KERNELS, 0, in KernelArgPool()
309 hsa_status_t isValidMemoryPool(hsa_amd_memory_pool_t MemoryPool) { in isValidMemoryPool() argument
312 MemoryPool, HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_ALLOWED, in isValidMemoryPool()
321 Err = hsa_amd_memory_pool_get_info(MemoryPool, HSA_AMD_MEMORY_POOL_INFO_SIZE, in isValidMemoryPool()
331 hsa_status_t addMemoryPool(hsa_amd_memory_pool_t MemoryPool, void *Data) { in addMemoryPool() argument
336 if ((Err = isValidMemoryPool(MemoryPool)) != HSA_STATUS_SUCCESS) { in addMemoryPool()
340 Result->push_back(MemoryPool); in addMemoryPool()
865 hsa_status_t addDeviceMemoryPool(hsa_amd_memory_pool_t MemoryPool, in addDeviceMemoryPool() argument
870 MemoryPool, HSA_AMD_MEMORY_POOL_INFO_GLOBAL_FLAGS, &GlobalFlags); in addDeviceMemoryPool()
877 DeviceFineGrainedMemoryPools[DeviceId] = MemoryPool; in addDeviceMemoryPool()
879 DeviceCoarseGrainedMemoryPools[DeviceId] = MemoryPool; in addDeviceMemoryPool()
888 Agents[DeviceId], [&](hsa_amd_memory_pool_t MemoryPool) { in setupDevicePools() argument
889 hsa_status_t ValidStatus = core::isValidMemoryPool(MemoryPool); in setupDevicePools()
895 return addDeviceMemoryPool(MemoryPool, DeviceId); in setupDevicePools()
924 for (const auto &MemoryPool : HostPools) { in setupHostMemoryPools() local
928 MemoryPool, HSA_AMD_MEMORY_POOL_INFO_GLOBAL_FLAGS, &GlobalFlags); in setupHostMemoryPools()
936 KernArgPool = MemoryPool; in setupHostMemoryPools()
939 HostFineGrainedMemoryPool = MemoryPool; in setupHostMemoryPools()
1872 hsa_amd_memory_pool_t MemoryPool = DeviceInfo().getDeviceMemoryPool(DeviceId); in implCalloc() local
1873 hsa_status_t Err = hsa_amd_memory_pool_allocate(MemoryPool, Rounded, 0, &Ptr); in implCalloc()
2615 hsa_amd_memory_pool_t MemoryPool = DeviceInfo().getDeviceMemoryPool(DeviceId); in __tgt_rtl_data_alloc() local
2616 hsa_status_t Err = hsa_amd_memory_pool_allocate(MemoryPool, Size, 0, &Ptr); in __tgt_rtl_data_alloc()