# Tensorpipe_temp **Repository Path**: wangc273/Tensorpipe_temp ## Basic Information - **Project Name**: Tensorpipe_temp - **Description**: 开源仓tensorpipe基于华为昇腾npu的适配,在昇腾社区建仓前暂时在个人仓上进行开发。 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2023-08-03 - **Last Updated**: 2023-09-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AscendTensorpipe 8/31/23:当前所有改动均已移入Ascend/Tensorpipe,后续更新会在Ascend/Tensorpipe中进行。 #### 介绍 开源仓Tensorpipe基于华为昇腾npu的适配。 #### 软件架构 后续补充... #### 安装教程 在linux shell中指定位置运行: ``` $ git clone https://gitee.com/wangc273/AscendTensorpipe.git $ cd AscendTensorpipe $ mkdir build $ cd build $ cmake ../ -GNinja $ ninja ``` 即可开始编译 若本地linux机上没有ninja-build,可以使用: ``` $ cmake ../ $ makefile ``` 来开始编译 倘若在clone submodule时遇到timeout 443的问题,可以修改.gitmodules中的url: ``` https://github.com/xxx/xxx.git -> https://gitclone.com/github.com/xxx/xxx.git ``` 即可成功clone各个submodule #### 使用说明 根据功能需求,在编译之前选择性启动./build/Options.cmake中Option features下的四个编译选项 ``` # Optional features option(TP_BUILD_BENCHMARK "Build benchmarks" OFF) option(TP_BUILD_MISC "Build misc tools" OFF) option(TP_BUILD_PYTHON "Build python bindings" OFF) option(TP_BUILD_TESTING "Build tests" OFF) ``` 倘若要将TP_BUILD_PYTHON设置为ON,在编译时需要额外添加:-DBUILD_SHARED_LIBS=ON,不然会生成无法被共享的.a文件而非.so文件 倘若要将TP_BUILD_MISC设置为ON,需要在Linux系统中下载llvm-12,clang-12和libclang-12-dev。三个包的版本必须相同(这里使用了ver12),且版本必须小于14,因为版本14修改了其中一个方法的访问权限。 #### 参与贡献 公开NAIE&SiteAi昇腾计算特战队-RPC小组 #### 特技 暂不涉及