-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17f3531
commit 2933a03
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ for (int k = 0; k < n; k++) | |
为简化问题,本实验中对输入作如下约定: | ||
|
||
- 输入图 $G = (V, E)$ 的规模 $|V| <= 10000$; | ||
- $E$ 中的所有边权为整数,且不大于 $100000$; | ||
- $E$ 中的所有边权为非负整数,且不大于 $100000$; | ||
- $G$ 为完全图,即邻接矩阵中不存在值为无穷大的项; | ||
- $G$ 中,每个点到自己的距离保证为 $0$。 | ||
|
||
|
@@ -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 <图规模>` 以运行你的程序。其中 `<图规模>` 为一个整数,表示图中的点数。程序会打印结果是否正确及运行时间两项数据。 | ||
|
||
## 分数细则 | ||
|
||
|