Skip to content

Commit d42f007

Browse files
committed
sphinx:md
1 parent a4fbbec commit d42f007

3 files changed

Lines changed: 75 additions & 1 deletion

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## ompsimd 贡献
2+
3+
ompsimd是DeepX框架的cpu执行器进程
4+
5+
+ 采用OMP+SIMD加速tensor计算。
6+
+ 使用了jemalloc内存池管理内存。
7+
8+
9+
### 1. 安装依赖
10+
11+
安装apt依赖
12+
13+
```
14+
sudo apt-get update
15+
sudo apt-get install -y \
16+
build-essential \
17+
cmake \
18+
libopenblas-dev \
19+
libyaml-cpp-dev \
20+
libjemalloc-dev \
21+
libgtest-dev \
22+
clang \
23+
git
24+
```
25+
26+
源码依赖安装
27+
28+
```
29+
sudo apt-get install -y libgtest-dev
30+
31+
# 克隆 Highway
32+
git clone --depth 1 --branch ${HIGHWAY_VERSION} https://github.com/google/highway.git
33+
cd highway
34+
mkdir -p build && cd build
35+
36+
# 使用标准的 CMake 构建流程
37+
cmake .. \
38+
-DCMAKE_BUILD_TYPE=Release \
39+
-DBUILD_SHARED_LIBS=ON \
40+
-DHWY_SYSTEM_GTEST=ON \
41+
-DHWY_ENABLE_TESTS=OFF
42+
43+
# 构建和安装
44+
make -j$(nproc)
45+
sudo make install
46+
sudo ldconfig # 更新动态链接库缓存
47+
48+
# 确保头文件正确安装
49+
sudo cp -r ../hwy /usr/local/include/
50+
```
51+
52+
### 2. 开发环境
53+
54+
c++ 17
55+

doc/front/py/contribute.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## DeepX-py库开发
2+
3+
deepx-py库是DeepX框架的Python库,方便用户搭建深度学习模型,输出计算图,主要用于深度学习模型的开发和训练。
4+
5+
### 1. 安装依赖
6+
7+
deepx-py库依赖:
8+
9+
```
10+
pip install graphviz
11+
```
12+
13+
### 2. 开发环境
14+
15+
deepx-py库的开发环境是:
16+
17+
python 3.8+
18+

doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ DeepX 原生分布式并行的深度学习训练推理一体框架
2525
:maxdepth: 4
2626
:caption: contrib 贡献
2727

28+
front/py/contribute
2829
front/node
2930
front/graph
3031
front/aboutop
3132
front/op
32-
excuter/welcome
33+
excuter/op-mem-ompsimd/contribute
3334

3435
索引和搜索
3536
==========

0 commit comments

Comments
 (0)