LCOV - code coverage report
Current view: top level - acl/aclrt_c/runtime - host_func.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 5 5
Test Date: 2026-07-28 10:53:01 Functions: 100.0 % 3 3

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #include "acl/acl_rt.h"
      11              : #include "runtime/kernel.h"
      12              : 
      13              : #ifdef __cplusplus
      14              : extern "C" {
      15              : #endif
      16              : 
      17            2 : aclError aclrtSubscribeHostFunc(uint64_t hostFuncThreadId, aclrtStream exeStream)
      18              : {
      19            2 :     return rtSubscribeHostFunc(hostFuncThreadId, (rtStream_t)exeStream);
      20              : }
      21              : 
      22            2 : aclError aclrtProcessHostFunc(int32_t timeout) { return rtProcessHostFunc(timeout); }
      23              : 
      24            2 : aclError aclrtUnSubscribeHostFunc(uint64_t hostFuncThreadId, aclrtStream exeStream)
      25              : {
      26            2 :     return rtUnSubscribeHostFunc(hostFuncThreadId, (rtStream_t)(exeStream));
      27              : }
      28              : 
      29              : #if defined(__cplusplus)
      30              : }
      31              : #endif
        

Generated by: LCOV version 2.0-1