Skip to content
Snippets Groups Projects
Verified Commit 75f453b4 authored by baptiste.coudray's avatar baptiste.coudray
Browse files

Updated benchmarks main

parent c4edf4c3
No related branches found
No related tags found
No related merge requests found
...@@ -68,3 +68,10 @@ Temporary Items ...@@ -68,3 +68,10 @@ Temporary Items
.apdisk .apdisk
.idea .idea
/result.png
/result_and_speedup.png
/result_speedup.png
/results_cuda.md
/results_mc.md
/results_opencl.md
/results_seq.md
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Author: Baptiste Coudray * Author: Baptiste Coudray
* School: HEPIA * School: HEPIA
* Class: ITI-3 * Class: ITI-3
* Year 2020-2021 * Year: 2020-2021
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -15,7 +15,12 @@ ...@@ -15,7 +15,12 @@
#define ROOT_RANK 0 #define ROOT_RANK 0
#define N_MEASURES 15 #define N_MEASURES 15
#if defined(FUTHARK_BACKEND_cuda) || defined(FUTHARK_BACKEND_opencl)
#define N_ITERATIONS 300 #define N_ITERATIONS 300
#else
#define N_ITERATIONS 100
#endif
void init_chunk_elems(chunk_info_t *ci) { void init_chunk_elems(chunk_info_t *ci) {
int8_t *data8 = ci->data; int8_t *data8 = ci->data;
......
1;1;300000000;2597.447232
1;1;300000000;2656.853186
1;1;300000000;2689.167635
1;1;300000000;2726.893447
1;1;300000000;2751.441591
1;1;300000000;2758.162819
1;1;300000000;2786.316691
1;1;300000000;2794.354984
1;1;300000000;2796.454158
1;1;300000000;2948.118102
1;1;300000000;2996.334661
1;1;300000000;3074.019078
1;1;300000000;3077.051097
1;1;300000000;3087.276528
1;1;300000000;3117.965043
2;1;300000000;1456.728439
2;1;300000000;1491.953186
2;1;300000000;1499.217049
2;1;300000000;1498.304020
2;1;300000000;1498.010466
2;1;300000000;1496.309470
2;1;300000000;1457.384839
2;1;300000000;1458.901353
2;1;300000000;1457.460116
2;1;300000000;1456.968434
2;1;300000000;1454.690665
2;1;300000000;1425.841724
2;1;300000000;1373.109634
2;1;300000000;1374.198574
2;1;300000000;1368.119771
4;1;300000000;711.763570
4;1;300000000;711.804972
4;1;300000000;712.610408
4;1;300000000;713.516658
4;1;300000000;713.844865
4;1;300000000;715.189865
4;1;300000000;726.945029
4;1;300000000;731.125396
4;1;300000000;731.590309
4;1;300000000;731.647452
4;1;300000000;731.656780
4;1;300000000;731.803553
4;1;300000000;732.062654
4;1;300000000;732.140710
4;1;300000000;732.435065
8;1;300000000;427.311590
8;1;300000000;427.468206
8;1;300000000;428.075209
8;1;300000000;428.922564
8;1;300000000;428.938332
8;1;300000000;428.995095
8;1;300000000;429.052721
8;1;300000000;429.110733
8;1;300000000;429.248941
8;1;300000000;429.287631
8;1;300000000;429.358406
8;1;300000000;429.782550
8;1;300000000;429.837802
8;1;300000000;430.422441
8;1;300000000;432.113259
16;1;300000000;191.214283
16;1;300000000;191.421156
16;1;300000000;191.625994
16;1;300000000;191.633596
16;1;300000000;191.670733
16;1;300000000;191.778354
16;1;300000000;191.938890
16;1;300000000;192.016355
16;1;300000000;192.391238
16;1;300000000;192.540204
16;1;300000000;192.598084
16;1;300000000;192.867500
16;1;300000000;192.884853
16;1;300000000;193.069005
16;1;300000000;193.554026
32;1;300000000;67.214586
32;1;300000000;67.537585
32;1;300000000;67.805421
32;1;300000000;67.840852
32;1;300000000;68.275155
32;1;300000000;68.573890
32;1;300000000;68.856913
32;1;300000000;69.162612
32;1;300000000;69.645621
32;1;300000000;69.655301
32;1;300000000;69.791858
32;1;300000000;70.089390
32;1;300000000;70.426058
32;1;300000000;70.827921
32;1;300000000;71.003422
64;1;300000000;46.088344
64;1;300000000;46.090353
64;1;300000000;46.099808
64;1;300000000;46.133481
64;1;300000000;46.147516
64;1;300000000;46.155656
64;1;300000000;46.160144
64;1;300000000;46.179713
64;1;300000000;46.446998
64;1;300000000;46.625780
64;1;300000000;46.634907
64;1;300000000;46.647911
64;1;300000000;46.674484
64;1;300000000;46.683203
64;1;300000000;46.704837
128;1;300000000;24.813093
128;1;300000000;24.830055
128;1;300000000;24.835879
128;1;300000000;24.855202
128;1;300000000;24.904192
128;1;300000000;24.916592
128;1;300000000;25.005122
128;1;300000000;25.009418
128;1;300000000;25.086555
128;1;300000000;25.097928
128;1;300000000;25.538429
128;1;300000000;26.292633
128;1;300000000;26.316778
128;1;300000000;26.613330
128;1;300000000;26.742307
1;1;300000000;2426.930826
1;1;300000000;2467.004814
1;1;300000000;2481.635886
1;1;300000000;2497.764487
1;1;300000000;2510.319514
1;1;300000000;2529.914196
1;1;300000000;2558.457044
1;1;300000000;2585.652214
1;1;300000000;2608.959408
1;1;300000000;2625.099937
1;1;300000000;2664.345892
1;1;300000000;2783.098761
1;1;300000000;2832.800698
1;1;300000000;2846.245383
1;1;300000000;2866.134523
2;1;300000000;1216.058113
2;1;300000000;1217.559982
2;1;300000000;1230.768240
2;1;300000000;1232.978757
2;1;300000000;1247.645682
2;1;300000000;1247.746847
2;1;300000000;1250.330586
2;1;300000000;1256.840494
2;1;300000000;1260.950188
2;1;300000000;1272.572992
2;1;300000000;1410.725779
2;1;300000000;1435.931603
2;1;300000000;1435.951716
2;1;300000000;1439.631374
2;1;300000000;1441.497418
4;1;300000000;692.324429
4;1;300000000;695.570297
4;1;300000000;712.978424
4;1;300000000;716.474967
4;1;300000000;716.656205
4;1;300000000;716.960072
4;1;300000000;717.568222
4;1;300000000;718.598829
4;1;300000000;719.278999
4;1;300000000;719.481600
4;1;300000000;719.673890
4;1;300000000;719.810468
4;1;300000000;720.220222
4;1;300000000;720.593405
4;1;300000000;720.745368
8;1;300000000;370.126773
8;1;300000000;370.175902
8;1;300000000;370.255876
8;1;300000000;370.261750
8;1;300000000;370.341631
8;1;300000000;370.468272
8;1;300000000;370.578635
8;1;300000000;370.646998
8;1;300000000;371.550240
8;1;300000000;371.620194
8;1;300000000;371.735158
8;1;300000000;371.815184
8;1;300000000;371.844639
8;1;300000000;371.844705
8;1;300000000;371.874613
16;1;300000000;155.549677
16;1;300000000;155.582484
16;1;300000000;155.595401
16;1;300000000;155.601588
16;1;300000000;155.619272
16;1;300000000;155.638062
16;1;300000000;155.639849
16;1;300000000;155.660920
16;1;300000000;155.669730
16;1;300000000;155.694094
16;1;300000000;155.706154
16;1;300000000;155.806637
16;1;300000000;155.845433
16;1;300000000;155.991847
16;1;300000000;156.030372
32;1;300000000;84.091173
32;1;300000000;84.132770
32;1;300000000;84.136805
32;1;300000000;84.158176
32;1;300000000;84.159108
32;1;300000000;84.160794
32;1;300000000;84.170364
32;1;300000000;84.174123
32;1;300000000;84.175242
32;1;300000000;84.177831
32;1;300000000;84.181100
32;1;300000000;84.185226
32;1;300000000;84.207805
32;1;300000000;84.473411
32;1;300000000;84.647918
64;1;300000000;32.196400
64;1;300000000;32.223935
64;1;300000000;32.440097
64;1;300000000;32.494825
64;1;300000000;32.583710
64;1;300000000;32.632215
64;1;300000000;32.663631
64;1;300000000;32.679357
64;1;300000000;32.680568
64;1;300000000;32.711776
64;1;300000000;32.838989
64;1;300000000;32.954333
64;1;300000000;32.959704
64;1;300000000;32.988913
64;1;300000000;33.003304
128;1;300000000;21.301506
128;1;300000000;21.317146
128;1;300000000;21.322774
128;1;300000000;21.323315
128;1;300000000;21.323933
128;1;300000000;21.324476
128;1;300000000;21.336914
128;1;300000000;21.340573
128;1;300000000;21.341142
128;1;300000000;21.350385
128;1;300000000;21.356612
128;1;300000000;21.387530
128;1;300000000;21.418986
128;1;300000000;21.465231
128;1;300000000;22.108697
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Author: Baptiste Coudray * Author: Baptiste Coudray
* School: HEPIA * School: HEPIA
* Class: ITI-3 * Class: ITI-3
* Year 2020-2021 * Year: 2020-2021
*/ */
#include <stdio.h> #include <stdio.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Author: Baptiste Coudray * Author: Baptiste Coudray
* School: HEPIA * School: HEPIA
* Class: ITI-3 * Class: ITI-3
* Year 2020-2021 * Year: 2020-2021
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -17,7 +17,12 @@ ...@@ -17,7 +17,12 @@
#define ROOT_RANK 0 #define ROOT_RANK 0
#define N_MEASURES 15 #define N_MEASURES 15
#if defined(FUTHARK_BACKEND_cuda) || defined(FUTHARK_BACKEND_opencl)
#define N_ITERATIONS 300
#else
#define N_ITERATIONS 100 #define N_ITERATIONS 100
#endif
void init_chunk_board(chunk_info_t *ci) { void init_chunk_board(chunk_info_t *ci) {
for (int i = 0; i < ci->dimensions[0]; ++i) { for (int i = 0; i < ci->dimensions[0]; ++i) {
......
1;1;30000;30000;2712.372410
1;1;30000;30000;2765.895184
1;1;30000;30000;2766.415715
1;1;30000;30000;2772.385380
1;1;30000;30000;2777.138595
1;1;30000;30000;2799.106167
1;1;30000;30000;2799.582442
1;1;30000;30000;2862.949775
1;1;30000;30000;2908.640234
1;1;30000;30000;2948.554526
1;1;30000;30000;2963.732735
1;1;30000;30000;2964.467193
1;1;30000;30000;2965.233772
1;1;30000;30000;3008.965615
1;1;30000;30000;3071.273915
2;1;30000;30000;1914.755519
2;1;30000;30000;1908.403686
2;1;30000;30000;1642.312636
2;1;30000;30000;1577.486674
2;1;30000;30000;1576.257694
2;1;30000;30000;1579.475982
2;1;30000;30000;1576.769383
2;1;30000;30000;1579.429449
2;1;30000;30000;1577.643241
2;1;30000;30000;1579.149941
2;1;30000;30000;1549.624258
2;1;30000;30000;1518.622321
2;1;30000;30000;1518.569143
2;1;30000;30000;1517.871464
2;1;30000;30000;1519.335430
4;1;30000;30000;789.201581
4;1;30000;30000;795.678520
4;1;30000;30000;807.722549
4;1;30000;30000;831.607386
4;1;30000;30000;855.506574
4;1;30000;30000;855.735955
4;1;30000;30000;856.160609
4;1;30000;30000;856.293211
4;1;30000;30000;856.375374
4;1;30000;30000;856.459322
4;1;30000;30000;856.624286
4;1;30000;30000;856.714784
4;1;30000;30000;856.747089
4;1;30000;30000;856.962454
4;1;30000;30000;878.840264
8;1;30000;30000;211.313045
8;1;30000;30000;211.630856
8;1;30000;30000;211.888230
8;1;30000;30000;212.890357
8;1;30000;30000;212.957781
8;1;30000;30000;213.187621
8;1;30000;30000;213.200834
8;1;30000;30000;213.246944
8;1;30000;30000;213.415203
8;1;30000;30000;213.616147
8;1;30000;30000;214.375011
8;1;30000;30000;214.560815
8;1;30000;30000;215.370647
8;1;30000;30000;217.238689
8;1;30000;30000;217.589340
16;1;30000;30000;147.870404
16;1;30000;30000;147.874827
16;1;30000;30000;147.877793
16;1;30000;30000;147.879833
16;1;30000;30000;147.880979
16;1;30000;30000;147.881549
16;1;30000;30000;147.882357
16;1;30000;30000;147.884989
16;1;30000;30000;147.885644
16;1;30000;30000;147.891657
16;1;30000;30000;150.554755
16;1;30000;30000;150.770361
16;1;30000;30000;153.567108
16;1;30000;30000;153.684316
16;1;30000;30000;153.808724
32;1;30000;30000;110.124005
32;1;30000;30000;110.192713
32;1;30000;30000;110.270169
32;1;30000;30000;110.330118
32;1;30000;30000;110.365435
32;1;30000;30000;110.367967
32;1;30000;30000;110.409252
32;1;30000;30000;110.418366
32;1;30000;30000;110.432128
32;1;30000;30000;110.477333
32;1;30000;30000;110.535757
32;1;30000;30000;110.540876
32;1;30000;30000;110.605465
32;1;30000;30000;110.706658
32;1;30000;30000;110.900935
64;1;30000;30000;55.580622
64;1;30000;30000;55.590253
64;1;30000;30000;55.597911
64;1;30000;30000;55.599881
64;1;30000;30000;55.624419
64;1;30000;30000;55.624529
64;1;30000;30000;55.640810
64;1;30000;30000;55.650778
64;1;30000;30000;55.651548
64;1;30000;30000;55.651727
64;1;30000;30000;55.660758
64;1;30000;30000;55.665909
64;1;30000;30000;55.669602
64;1;30000;30000;55.714860
64;1;30000;30000;55.778316
128;1;30000;30000;30.303008
128;1;30000;30000;30.363707
128;1;30000;30000;30.367234
128;1;30000;30000;30.373399
128;1;30000;30000;30.376756
128;1;30000;30000;30.385259
128;1;30000;30000;30.388133
128;1;30000;30000;30.389306
128;1;30000;30000;30.396965
128;1;30000;30000;30.398975
128;1;30000;30000;30.401142
128;1;30000;30000;30.402546
128;1;30000;30000;30.402981
128;1;30000;30000;30.413957
128;1;30000;30000;30.417853
1;1;30000;30000;1767.929835
1;1;30000;30000;1789.739618
1;1;30000;30000;1799.933185
1;1;30000;30000;1859.697677
1;1;30000;30000;1861.829547
1;1;30000;30000;1865.313715
1;1;30000;30000;1866.366032
1;1;30000;30000;1866.805747
1;1;30000;30000;1868.988421
1;1;30000;30000;1869.861810
1;1;30000;30000;1872.473524
1;1;30000;30000;1877.917117
1;1;30000;30000;1892.077031
1;1;30000;30000;1893.645658
1;1;30000;30000;1926.981093
2;1;30000;30000;887.684066
2;1;30000;30000;900.654590
2;1;30000;30000;905.873101
2;1;30000;30000;916.601595
2;1;30000;30000;922.373580
2;1;30000;30000;922.823060
2;1;30000;30000;923.061344
2;1;30000;30000;925.184747
2;1;30000;30000;927.928990
2;1;30000;30000;933.169985
2;1;30000;30000;938.477831
2;1;30000;30000;939.256660
2;1;30000;30000;940.927977
2;1;30000;30000;948.642066
2;1;30000;30000;962.753030
4;1;30000;30000;1238.446927
4;1;30000;30000;1232.796502
4;1;30000;30000;1235.065813
4;1;30000;30000;1175.380350
4;1;30000;30000;1141.267611
4;1;30000;30000;1143.023644
4;1;30000;30000;1142.483465
4;1;30000;30000;1135.652176
4;1;30000;30000;1126.706888
4;1;30000;30000;1126.207753
4;1;30000;30000;1126.126521
4;1;30000;30000;1125.914435
4;1;30000;30000;1126.117299
4;1;30000;30000;1126.249654
4;1;30000;30000;1126.299501
8;1;30000;30000;598.143629
8;1;30000;30000;600.126293
8;1;30000;30000;606.081375
8;1;30000;30000;606.480366
8;1;30000;30000;606.509094
8;1;30000;30000;606.626162
8;1;30000;30000;607.038770
8;1;30000;30000;607.357408
8;1;30000;30000;607.391862
8;1;30000;30000;607.458756
8;1;30000;30000;607.625330
8;1;30000;30000;607.925012
8;1;30000;30000;608.339810
8;1;30000;30000;608.687295
8;1;30000;30000;610.618234
16;1;30000;30000;322.510738
16;1;30000;30000;322.629724
16;1;30000;30000;322.872597
16;1;30000;30000;322.886744
16;1;30000;30000;322.975158
16;1;30000;30000;323.026697
16;1;30000;30000;323.114519
16;1;30000;30000;323.153906
16;1;30000;30000;323.207114
16;1;30000;30000;323.290825
16;1;30000;30000;323.293595
16;1;30000;30000;323.446570
16;1;30000;30000;323.473241
16;1;30000;30000;323.659523
16;1;30000;30000;323.838912
32;1;30000;30000;144.985384
32;1;30000;30000;145.081746
32;1;30000;30000;145.337122
32;1;30000;30000;145.364102
32;1;30000;30000;145.389821
32;1;30000;30000;145.477532
32;1;30000;30000;145.593743
32;1;30000;30000;145.621796
32;1;30000;30000;145.721759
32;1;30000;30000;145.809528
32;1;30000;30000;145.888967
32;1;30000;30000;146.033240
32;1;30000;30000;146.297462
32;1;30000;30000;146.853880
32;1;30000;30000;146.889353
64;1;30000;30000;51.243774
64;1;30000;30000;52.069520
64;1;30000;30000;52.131302
64;1;30000;30000;52.438776
64;1;30000;30000;52.495932
64;1;30000;30000;52.901613
64;1;30000;30000;52.945150
64;1;30000;30000;53.047509
64;1;30000;30000;53.154141
64;1;30000;30000;53.470171
64;1;30000;30000;53.483472
64;1;30000;30000;53.776030
64;1;30000;30000;53.999588
64;1;30000;30000;54.009953
64;1;30000;30000;54.015025
128;1;30000;30000;39.073429
128;1;30000;30000;39.116863
128;1;30000;30000;39.210194
128;1;30000;30000;39.212904
128;1;30000;30000;39.290301
128;1;30000;30000;39.302382
128;1;30000;30000;39.343746
128;1;30000;30000;39.363455
128;1;30000;30000;39.462507
128;1;30000;30000;39.463418
128;1;30000;30000;39.498543
128;1;30000;30000;39.515463
128;1;30000;30000;39.530555
128;1;30000;30000;39.564610
128;1;30000;30000;39.634913
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Author: Baptiste Coudray * Author: Baptiste Coudray
* School: HEPIA * School: HEPIA
* Class: ITI-3 * Class: ITI-3
* Year 2020-2021 * Year: 2020-2021
*/ */
#include <stdio.h> #include <stdio.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Author: Baptiste Coudray * Author: Baptiste Coudray
* School: HEPIA * School: HEPIA
* Class: ITI-3 * Class: ITI-3
* Year 2020-2021 * Year: 2020-2021
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -13,7 +13,13 @@ ...@@ -13,7 +13,13 @@
#include "../futhark_mpi/dispatch.h" #include "../futhark_mpi/dispatch.h"
#define N_MEASURES 15 #define N_MEASURES 15
#if defined(FUTHARK_BACKEND_cuda) || defined(FUTHARK_BACKEND_opencl)
#define N_ITERATIONS 100 #define N_ITERATIONS 100
#else
#define N_ITERATIONS 50
#endif
#define NB_VALUES 27 #define NB_VALUES 27
#define ROOT_RANK 0 #define ROOT_RANK 0
......
...@@ -13,7 +13,7 @@ RESULT_APPEND_FILENAME = "result_and_speedup.png" ...@@ -13,7 +13,7 @@ RESULT_APPEND_FILENAME = "result_and_speedup.png"
def plot(title1, xs1, ys1, title2, xs2, ys2): def plot(title1, xs1, ys1, title2, xs2, ys2):
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.plot(xs1, ys1, label=title1) ax.plot(xs1, ys1, label=title1)
# ax.plot(xs2, ys2, label=title2) ax.plot(xs2, ys2, label=title2)
ax.set(xlabel="Number of tasks", ylabel='Time (in seconds)', ax.set(xlabel="Number of tasks", ylabel='Time (in seconds)',
title=f"Simple Cellular Automaton\nCompute 100 generations with 300'000'000 cells") title=f"Simple Cellular Automaton\nCompute 100 generations with 300'000'000 cells")
ax.grid() ax.grid()
...@@ -26,7 +26,7 @@ def plot(title1, xs1, ys1, title2, xs2, ys2): ...@@ -26,7 +26,7 @@ def plot(title1, xs1, ys1, title2, xs2, ys2):
def plot_speedup(title1, xs1, ys1, title2, xs2, ys2): def plot_speedup(title1, xs1, ys1, title2, xs2, ys2):
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.plot(xs1, ys1, label=title1) ax.plot(xs1, ys1, label=title1)
# ax.plot(xs2, ys2, label=title2) ax.plot(xs2, ys2, label=title2)
ax.plot(xs1, xs1, label="Ideal Speedup") ax.plot(xs1, xs1, label="Ideal Speedup")
ax.set(xlabel="Number of tasks", ylabel='Speedup', ax.set(xlabel="Number of tasks", ylabel='Speedup',
title=f"Simple Cellular Automaton\nSpeedup of computing 100 generations\n with 300'000'000 cells") title=f"Simple Cellular Automaton\nSpeedup of computing 100 generations\n with 300'000'000 cells")
...@@ -77,16 +77,16 @@ def to_md_array(filename, xs, ys, stds, speedups, gpu): ...@@ -77,16 +77,16 @@ def to_md_array(filename, xs, ys, stds, speedups, gpu):
def main(): def main():
xs1, ys1, stds1, speedups1 = get_data("elementary/benchmark/results/elementary-seq-2021-07-02.csv") xs1, ys1, stds1, speedups1 = get_data("game_of_life/benchmark/results/gol-seq-2021-07-14.csv")
xs2, ys2, stds2, speedups2 = get_data("elementary/benchmark/results/elementary-mc-2021-06-29.csv") xs2, ys2, stds2, speedups2 = get_data("game_of_life/benchmark/results/gol-mc-2021-07-14.csv")
# plot("Sequential", xs1, ys1, "Multicore", xs2, ys2) plot("Sequential", xs1, ys1, "Multicore", xs2, ys2)
# plot_speedup("OpenCL Speedup", xs1[:4], speedups1[:4], "Multicore Speedup", xs2, speedups2) plot_speedup("Sequential Speedup", xs1, speedups1, "Multicore Speedup", xs2, speedups2)
to_md_array("results_seq.md", xs1, ys1, stds1, speedups1, gpu=False) # to_md_array("results_seq.md", xs1, ys1, stds1, speedups1, gpu=False)
to_md_array("results_mc.md", xs2, ys2, stds2, speedups2, gpu=False) # to_md_array("results_mc.md", xs2, ys2, stds2, speedups2, gpu=False)
# Need ImageMagick # Need ImageMagick
# subprocess.run(["docker", "run", "-v", f"{os.getcwd()}:/imgs", "dpokidov/imagemagick", "+append", subprocess.run(["docker", "run", "-v", f"{os.getcwd()}:/imgs", "dpokidov/imagemagick", "+append",
# f"/imgs/{RESULT_FILENAME}", f"/imgs/{RESULT_SPEEDUP_FILENAME}", f"/imgs/{RESULT_APPEND_FILENAME}"], f"/imgs/{RESULT_FILENAME}", f"/imgs/{RESULT_SPEEDUP_FILENAME}", f"/imgs/{RESULT_APPEND_FILENAME}"],
# capture_output=False) capture_output=False)
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -10,11 +10,13 @@ def slurm_gpu(file, version, ntasks, mem_per_cpu, time): ...@@ -10,11 +10,13 @@ def slurm_gpu(file, version, ntasks, mem_per_cpu, time):
#SBATCH --ntasks={ntasks} #SBATCH --ntasks={ntasks}
#SBATCH --cpus-per-task=1 #SBATCH --cpus-per-task=1
#SBATCH --partition=shared-gpu #SBATCH --partition=shared-gpu
#SBATCH --gpus=rtx:{min(ntasks, 8)} #SBATCH --gpus=ampere:{min(ntasks, 2)}
#SBATCH --mem-per-cpu={mem_per_cpu} #SBATCH --mem-per-cpu={mem_per_cpu}
#SBATCH --time={time} #SBATCH --time={time}
srun {file[1]}_{version}_bench {min(ntasks, 8)} 30000 30000 module load CUDA
srun {file[1]}_{version}_bench {min(ntasks, 8)} {file[2]} {file[2]} {file[2]}
""" """
...@@ -29,14 +31,14 @@ def slurm_cpu(file, version, ntasks, mem_per_cpu, time): ...@@ -29,14 +31,14 @@ def slurm_cpu(file, version, ntasks, mem_per_cpu, time):
#SBATCH --mem-per-cpu={mem_per_cpu} #SBATCH --mem-per-cpu={mem_per_cpu}
#SBATCH --time={time} #SBATCH --time={time}
srun {file[1]}_{version}_bench 1 30000 30000 srun {file[1]}_{version}_bench 1 {file[2]} {file[2]} {file[2]}
""" """
FILES = [ FILES = [
["elem"], ["/home/users/c/coudrayb/projet-de-bachelor/elementary/cmake-build-release/elementary"], ["elem"], ["/home/users/c/coudrayb/projet-de-bachelor/elementary/cmake-build-release/elementary", 300000000],
["gol"], ["/home/users/c/coudrayb/projet-de-bachelor/game_of_life/cmake-build-release/game_of_life"], ["gol"], ["/home/users/c/coudrayb/projet-de-bachelor/game_of_life/cmake-build-release/game_of_life", 30000],
["lbm"], ["/home/users/c/coudrayb/projet-de-bachelor/lattice_boltzmann/cmake-build-release/lattice_boltzmann"] ["lbm"], ["/home/users/c/coudrayb/projet-de-bachelor/lattice_boltzmann/cmake-build-release/lattice_boltzmann", 300]
] ]
HOURS = ["12:00:00", "06:00:00", "03:00:00", "02:00:00", "01:00:00", "01:00:00", "01:00:00"] HOURS = ["12:00:00", "06:00:00", "03:00:00", "02:00:00", "01:00:00", "01:00:00", "01:00:00"]
...@@ -45,7 +47,7 @@ def main(): ...@@ -45,7 +47,7 @@ def main():
for version in ["cuda"]: for version in ["cuda"]:
for i in range(0, 8): for i in range(0, 8):
ntasks = 2 ** i ntasks = 2 ** i
mem_per_cpu = "8000" if ntasks <= 2 else "4000" mem_per_cpu = 13000
file = FILES[0] file = FILES[0]
time = HOURS[i] time = HOURS[i]
if version == "seq" or version == "mc": if version == "seq" or version == "mc":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment