Skip to content

Commit 7c5aa0d

Browse files
committed
todo:介绍
1 parent 973823c commit 7c5aa0d

5 files changed

Lines changed: 32 additions & 2 deletions

File tree

.cursorrules

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Always respond in 中文
22
不要回答重复的内容(如我提问中的代码)
3-
此项目名为deepx,我的环境为ubuntu22,项目是c++17,使用cmake编译,项目路径为/home/lipeng/code/ai/deepx
3+
4+
此项目名为deepx
5+
项目路径为/home/lipeng/code/ai/deepx
6+
项目分为3部分
7+
1. 前端。python库的接口风格参考pytorch,其他语言如go,java,c,rust等,后续设计完善。
8+
2. 调度器,待设计
9+
3. 执行器,使用c++,cuda,metal,omp simd等,实现不同excuter的算子的前向和反向
10+
11+
关于c++
12+
我的环境为ubuntu22,项目是c++17,使用cmake编译,
413
返回c++代码区分header和source文件
514
由于作者是c++新手,请仔细检查指针和引用,对deepx这种密集计算任务,不要使用智能指针,但注意内存泄漏,函数返回对象等
6-
不要增加"假设Tensor类在这个路径下"这种一眼就被看出是AI写的注释,不要让我的代码看起来像AI生成
15+
16+
关于python

front/py/deepx/optim/optimizer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Optimizer:
2+
def __init__(self, params,defaults: dict[str, Any]) -> None:
3+
self.params = params
4+
self.defaults = defaults
5+
6+
def step(self):
7+
pass

todo/excuter/metal/metal.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Metal
2+
3+
考虑用macos的metal加速库,支持GPU计算

todo/excuter/ompsimd/ompsimd.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# OMP SIMD
2+
3+
当前开发中

todo/scheduler.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
## 性能监控
3+
4+
通过IR消息的send_at,recv_at,done_at,计算IR的计算耗时
5+
6+
## 算子注册和融合
7+

0 commit comments

Comments
 (0)