|
@@ -602,7 +602,12 @@ void sigmoid(float *x, float *y, int n) {
|
|
|
|
|
|
##### 性能结果
|
|
|
|
|
|
-
|
|
|
+| 问题规模 | MPI进程数 | 总运行时间(sec) |
|
|
|
+| -------- | --------- | --------------- |
|
|
|
+| 64 | 1 | 0.122 |
|
|
|
+| 128 | 4 | 0.267 |
|
|
|
+| 256 | 16 | 0.276 |
|
|
|
+| 512 | 64 | 4.923 |
|
|
|
|
|
|
##### 改进
|
|
|
|
|
@@ -615,14 +620,16 @@ void sigmoid(float *x, float *y, int n) {
|
|
|
|
|
|
### closure-Hybrid-omp-mpi
|
|
|
|
|
|
+##### 性能结果
|
|
|
+
|
|
|
| 问题规模 | OpenMP线程数 | MPI进程数 | 总运行时间(sec) |
|
|
|
| -------- | ------------ | --------- | --------------- |
|
|
|
-| 64 | 1 | 1 | 0.492 |
|
|
|
-| 128 | 2 | 1 | 1.725 |
|
|
|
-| 256 | 4 | 1 | |
|
|
|
-| 256 | 1 | 4 | 6.681 |
|
|
|
-| 512 | 2 | 4 | 46.498 |
|
|
|
-| 1024 | 4 | 4 | |
|
|
|
+| 64 | 1 | 1 | 0.122 |
|
|
|
+| 64 | 2 | 1 | 0.090 |
|
|
|
+| 64 | 4 | 1 | 0.067 |
|
|
|
+| 256 | 1 | 4 | 1.255 |
|
|
|
+| 256 | 2 | 4 | 0.834 |
|
|
|
+| 256 | 4 | 4 | 0.647 |
|
|
|
|
|
|
### gauss-MPI
|
|
|
|