Skip to content

Commit

Permalink
feat: update doc of exp2
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverYoung2001 committed Apr 22, 2024
1 parent 17f3531 commit 2933a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/exp/2.apsp.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for (int k = 0; k < n; k++)
为简化问题,本实验中对输入作如下约定:

- 输入图 $G = (V, E)$ 的规模 $|V| <= 10000$;
- $E$ 中的所有边权为整数,且不大于 $100000$;
- $E$ 中的所有边权为非负整数,且不大于 $100000$;
- $G$ 为完全图,即邻接矩阵中不存在值为无穷大的项;
- $G$ 中,每个点到自己的距离保证为 $0$。

Expand Down Expand Up @@ -131,9 +131,9 @@ cd ~/PA2/

### 编译运行流程

1. 加载 CUDA 环境:`spack load cuda`
1. 加载 CUDA和GCC 环境:`spack load cuda && spack load [email protected]`
2. 编译:`make`
3. 运行 `srun -gpus 1 -N 1 ./benchmark <图规模>` 以运行你的程序。其中 `<图规模>` 为一个整数,表示图中的点数。程序会打印结果是否正确及运行时间两项数据。
3. 运行 `srun -N 1 --gres=gpu:1 ./benchmark <图规模>` 以运行你的程序。其中 `<图规模>` 为一个整数,表示图中的点数。程序会打印结果是否正确及运行时间两项数据。

## 分数细则

Expand Down

0 comments on commit 2933a03

Please sign in to comment.