Skip to content

Commit b400daf

Browse files
'Justjustifyjudge: HPC部分加了个仿真allreduce算子仓库+edx课程, git部分加入一些苯人的笨操作'
1 parent 874acfc commit b400daf

3 files changed

Lines changed: 52 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Made with [contrib.rocks](https://contrib.rocks).
3030
- huggingface resources(包括如何换源/加速下载
3131
- dataset resources
3232
- NLP / CV / Audio / Recommendation System / Large Language Model
33-
- 常见的tutorials
33+
- 常见的tutorials,主要围绕有监督学习方向提供材料
3434
- prompts的使用
3535
- CUDA & NVIDIA
3636
- src/cg(computer graphics):计算机图形学相关资料

src/sys/hpc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Labs:
1111
* CS149 并行计算(该课程与15-418一致) Lab:[[Github](https://github.com/stanford-cs149/asst1)]
1212
* HPC101 Lab:[[主页](https://www.zjusct.io/HPC101-Labs-2022/)]
13+
* 其他资源:
14+
* [Rolf Rabenseifner拓扑算子的一种仿真实现](https://github.com/Justjustifyjudge/repo4mpi.git),根据Optimization of Collective Reduction Operations给出的拓扑图完成的不同逻辑拓扑的Allreduce算子。
1315
### OpenMPI的安装
1416
> 更多内容可以查看:https://docs.open-mpi.org/en/v5.0.x/installing-open-mpi/quickstart.html
1517
1. OpenMPI的下载及解压: 在[OpenMPI官方主页](https://www-lb.open-mpi.org/software/ompi/v5.0/)找到合适版本的OpenMPI下载并解压

src/useful/git.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,52 @@
2828
Generating public/private rsa key pair.
2929
Enter file in which to save the key (/your_home_path/.ssh/id_rsa):
3030
```
31+
- 下拉/提交远程仓库
32+
- 查看远程仓库的信息:
33+
```bash
34+
git remote -v
35+
```
36+
可以看到远程仓库的名字和地址。
37+
- 查看当前分支名:
38+
```bash
39+
git branch
40+
```
41+
可以看到当前代码分支的名字
42+
- 从远程仓库下拉:
43+
```bash
44+
git pull <远程仓库的名字/地址> <代码的分支名>
45+
```
46+
- 冲突处理(苯人的笨方法)
47+
```bash
48+
git pull <远程仓库的名字/地址> <代码的分支名> --allow-unrelated-histories
49+
```
50+
然后使用
51+
```bash
52+
git status
53+
```
54+
查看冲突文件,手动解决冲突。
55+
- 提交本地代码到远程仓库:
56+
```bash
57+
git push <远程仓库的名字/地址> <代码的分支名>
58+
```
59+
- 强制推送(苯人的笨方法,高风险,慎用):
60+
```bash
61+
git push -f <远程仓库的名字/地址> <代码的分支名>
62+
```
63+
- 推送tags到远程仓库:
64+
```bash
65+
git push --tags
66+
```
67+
- 删除远程分支:
68+
```bash
69+
git push origin --delete <分支名>
70+
```
71+
- 同步本地分支到远程仓库:
72+
```bash
73+
git push origin <本地分支名>:<远程分支名>
74+
```
75+
- 同步远程分支到本地仓库:
76+
```bash
77+
git checkout -b <本地分支名> <远程分支名>
78+
```
79+

0 commit comments

Comments
 (0)