/** * @file acl.h * * Copyright (C) Huawei Technologies Co., Ltd. 2019-2020. All Rights Reserved. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef INC_EXTERNAL_ACL_ACL_H_ #define INC_EXTERNAL_ACL_ACL_H_ #include "acl_rt.h" #include "acl_op.h" #include "acl_mdl.h" #ifdef __cplusplus extern "C" { #endif /** * @ingroup AscendCL * @brief acl initialize * * @par Restriction * The aclInit interface can be called only once in a process * @param configPath [IN] the config path,it can be NULL * @retval ACL_ERROR_NONE The function is successfully executed. * @retval OtherValues Failure */ ACL_FUNC_VISIBILITY aclError aclInit(const char *configPath); /** * @ingroup AscendCL * @brief acl finalize * * @par Restriction * Need to call aclFinalize before the process exits. * After calling aclFinalize,the services cannot continue to be used normally. * @retval ACL_ERROR_NONE The function is successfully executed. * @retval OtherValues Failure */ ACL_FUNC_VISIBILITY aclError aclFinalize(); #ifdef __cplusplus } #endif #endif // INC_EXTERNAL_ACL_ACL_H_