From e897619f5df52d72ab854c97ffc21575c20040b4 Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Fri, 3 Nov 2023 11:22:05 +0800 Subject: [PATCH 1/3] 1024-1107 --- .../[WeeklyReport]2023.10.24~2023.11.07.md | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md diff --git a/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md new file mode 100644 index 00000000..673ca512 --- /dev/null +++ b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md @@ -0,0 +1,71 @@ +### 姓名 + +黄子豪 + +### 实习项目 + +PIR 适配 AI 编译器 CINN + +### 本周工作 + + +#### 1. [遗留工作] matmul 转写PR的合入完成 + +- https://github.com/PaddlePaddle/Paddle/pull/56550 +- https://github.com/PaddlePaddle/Paddle/pull/58517 + +#### 2. [遗留工作] build cinn pass test 代码 case 添加 + +- https://github.com/PaddlePaddle/Paddle/pull/58620 + + +#### 3. [遗留工作] 修改 pir.cc 部分文档使其通过 xdoctest 检查 + +- https://github.com/PaddlePaddle/Paddle/pull/58177 + + +#### 4. 一些编译 Paddle 的 tricks + +```shell + +# cmake 指令 +cmake .. -DPY_VERSION=3.8 -DWITH_GPU=ON -DWITH_TESTING=ON -DCINN_ONLY=OFF -DWITH_CINN=ON + +# 添加 PYTHONPATH 避免 wheel 安装 Paddle +export PYTHONPATH=/home/aistudio/lbwnb/Paddle/build/python + +# 可以进行 Paddle 的增量修改的编译 +make copy_libpaddle -j$(nproc) + +# 修改单测可以只 make 相应的 target +make {单测 targe} -j$(nproc) + + +# 改 pip 源, pre-commit 安装速度提升 +echo -e '[global]\nindex-url=http://mirrors.aliyun.com/pypi/simple/\ntrusted-host=mirrors.aliyun.com' >> ~/.pip/pip.conf +python -mpip install httpx --upgrade pip + +# 运行单测 demo +FLAGS_NEW_IR_OPTEST_WHITE_LIST=1 FLAGS_NEW_IR_OPTEST=1 GLOG_v=10 python test/legacy_test/test_mul_op.py >err.log 2>&1 + +ctest -VV -R test_pir_build_cinn_pass +``` + +#### 5. 新IR Python API适配升级 + +新IR Python API适配升级:178, 169, 137, 34, 129, 152, 187, 197, 219-221, 225, 227 + + +#### 6. 阅读 cinn 单测源码 + + + +### 下周工作 + +1. 新IR Python API适配升级 + + + + +### 导师点评 + From ec84c8389b9f26d56d8ef42d81b4c392937fb87a Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Tue, 7 Nov 2023 11:02:58 +0800 Subject: [PATCH 2/3] add 1107 --- ... => [WeeklyReport]2023.10.25~2023.11.07.md} | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) rename WeeklyReports/19_RyanHuang/{[WeeklyReport]2023.10.24~2023.11.07.md => [WeeklyReport]2023.10.25~2023.11.07.md} (64%) diff --git a/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md similarity index 64% rename from WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md rename to WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md index 673ca512..45586c26 100644 --- a/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.24~2023.11.07.md +++ b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md @@ -9,7 +9,7 @@ PIR 适配 AI 编译器 CINN ### 本周工作 -#### 1. [遗留工作] matmul 转写PR的合入完成 +#### 1. [遗留工作] matmul 转写PR的合入&&优化完成 - https://github.com/PaddlePaddle/Paddle/pull/56550 - https://github.com/PaddlePaddle/Paddle/pull/58517 @@ -53,18 +53,28 @@ ctest -VV -R test_pir_build_cinn_pass #### 5. 新IR Python API适配升级 -新IR Python API适配升级:178, 169, 137, 34, 129, 152, 187, 197, 219-221, 225, 227 +新IR Python API适配升级 +- https://github.com/PaddlePaddle/Paddle/pull/58394 +- https://github.com/PaddlePaddle/Paddle/pull/58445 +- https://github.com/PaddlePaddle/Paddle/pull/58629 +- https://github.com/PaddlePaddle/Paddle/pull/58670 +- https://github.com/PaddlePaddle/Paddle/pull/58675 +- https://github.com/PaddlePaddle/Paddle/pull/58683 +- https://github.com/PaddlePaddle/Paddle/pull/58693 +- https://github.com/PaddlePaddle/Paddle/pull/58699 -#### 6. 阅读 cinn 单测源码 - +#### 6. 阅读 cinn 相关源码 +- [cinn_source_code_reading_guide](https://github.com/DrRyanHuang/community/blob/master/pfcc/paddle-code-reading/IR_Dialect/) ### 下周工作 1. 新IR Python API适配升级 +160、204、216、23、27、102、140-142 +2. 继续进行 cinn 相关源码阅读 ### 导师点评 From 49d37bf347b87be96dd1952f37e0f7bf895b643a Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Wed, 8 Nov 2023 15:40:16 +0800 Subject: [PATCH 3/3] Update WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md --- .../19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md index 45586c26..2954e06a 100644 --- a/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md +++ b/WeeklyReports/19_RyanHuang/[WeeklyReport]2023.10.25~2023.11.07.md @@ -78,4 +78,5 @@ ctest -VV -R test_pir_build_cinn_pass ### 导师点评 - +总结:优秀。子豪本周参与了非常多的 API PIR 迁移的工作,积极主动,遇到问题及时沟通和同步,进展较快。 +建议:在迁移过程中,可以多发现和多思考遇到的功能问题,反馈给内部同学支持。