Searched refs:kMemAlignSize (Results 1 – 6 of 6) sorted by relevance
31 return (input_size + kMemAlignSize + kAlignBytes - 1) / kMemAlignSize * kMemAlignSize; in GetCommonAlignSize()35 return (input_size + kMemAlignSize - 1) / kMemAlignSize * kMemAlignSize + kTwiceMemAlignSize; in GetCommunicationAlignSize()93 address->communication_ptr_ = ptr - kMemAlignSize; in MallocOutputMem()
31 constexpr uint64_t kMemAlignSize = 512; variable32 constexpr uint64_t kTwiceMemAlignSize = kMemAlignSize << 1;
142 …uto clean_item = (output_men_size.at(index) + kMemAlignSize + kAlignBytes) / kMemAlignSize * kMemA… in CalCleanZerosSize()151 …clean_item = (workspace_men_sizes.at(index) + kMemAlignSize + kAlignBytes) / kMemAlignSize * kMemA… in CalCleanZerosSize()
162 return alloc_address + kMemAlignSize; in MallocStaticMem()194 return device_mem_base_ + offset + kMemAlignSize; in MallocDynamicMem()215 return base_ptr + kMemAlignSize; in MallocCommunicationMemFromMemPool()
79 uint8_t *origin_dev_addr = ar_input_addr_ - kMemAlignSize; in FreeAllDeviceMem()84 uint8_t *origin_dev_addr = ar_output_addr_ - kMemAlignSize; in FreeAllDeviceMem()
500 const size_t kMemAlignSize = 512; variable