From 796a39ccdcc99fa1e6eab804c62889ce21ef8e3e Mon Sep 17 00:00:00 2001 From: mengyuanli Date: Sun, 28 Sep 2025 10:13:41 +0800 Subject: [PATCH] add description --- 3rdparty/.gitkeep | 0 README.md | 10 +++++++++- README_EN.md | 8 ++++++++ ops/dsl/.gitkeep | 0 requirements.txt | 2 +- 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 3rdparty/.gitkeep create mode 100644 ops/dsl/.gitkeep diff --git a/3rdparty/.gitkeep b/3rdparty/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 72b64a6..e8239c3 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,15 @@ MindSpore 自定义算子扩展(ms_custom_ops),是依托 MindSpore 原生 ms_custom_ops/ ├── CMakeLists.txt # CMake构建配置 ├── README.md # 项目文档 +├── README_EN.md # 英文项目文档 ├── OWNERS # 项目维护者 +├── LICENSE # 开源许可证 ├── requirements.txt # Python依赖 ├── setup.py # Python包配置 ├── version.txt # 版本信息 ├── 3rdparty/ # 第三方依赖 ├── cmake/ # CMake构建脚本 +├── docs/ # 文档资源 ├── ops/ # 自定义算子kernel源码与接入代码 │ ├── ascendc/ # AscendC算子实现以及对接代码 │ ├── c_api/ # 以预封装的API调用方式对接的算子 @@ -31,7 +34,7 @@ ms_custom_ops/ ├── prebuild/ # 预编译的二进制库 ├── python/ # Python绑定和扩展 ├── scripts/ # 构建和工具脚本 -├── tests/ # 测试用例 +└── tests/ # 测试用例 ``` ## 快速开始 @@ -95,6 +98,11 @@ ms_custom_ops/ eg. bash build.sh -v ascend910b4 ``` + 编译完成后,安装生成的wheel包: + ```bash + pip install dist/*.whl + ``` + 4. **使用 setup.py 安装** ```bash diff --git a/README_EN.md b/README_EN.md index 48bd673..84d0ffe 100644 --- a/README_EN.md +++ b/README_EN.md @@ -16,12 +16,15 @@ MindSpore Custom Operators Extension (ms_custom_ops) is an independent operator ms_custom_ops/ ├── CMakeLists.txt # CMake build configuration ├── README.md # Project documentation +├── README_EN.md # English project documentation ├── OWNERS # Project maintainers +├── LICENSE # Open source license ├── requirements.txt # Python dependencies ├── setup.py # Python package configuration ├── version.txt # Version information ├── 3rdparty/ # Third-party dependencies ├── cmake/ # CMake build scripts +├── docs/ # Documentation resources ├── ops/ # Custom operator kernel source code and integration code │ ├── ascendc/ # AscendC operator implementation and integration code │ ├── c_api/ # Operators integrated via pre-packaged API calls @@ -95,6 +98,11 @@ ms_custom_ops/ eg. bash build.sh -v ascend910b4 ``` + After compilation, install the generated wheel package: + ```bash + pip install dist/*.whl + ``` + 4. **Install using setup.py** ```bash diff --git a/ops/dsl/.gitkeep b/ops/dsl/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt index b7880ee..4bb54b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -mindspore>=2.6 +mindspore>=2.7.1 pyyaml >= 6.0,<=6.0.2 # for the automatic generation and compilation of operator code. ninja>=1.11 -- Gitee