/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. */#pragma once#ifdef PADDLE_WITH_ASCEND_CLnamespacephi{namespacebackends{namespacenpu{//! Get the minimum chunk size for NPU buddy allocator.inlinesize_tNPUMinChunkSize(){// NOTE(zhiqiu): It seems the min chunk size should be 512 on NPU,// though no document specify that explicitly.// See https://gitee.com/zhiqiuchen/Ascend/tree/master/test_reduce_sum_d for// details.return1<<9;}}// namespace npu}// namespace backends}// namespace phi#endif