File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " ParallelUtilities"
2
2
uuid = " fad6cfc8-4f83-11e9-06cc-151124046ad0"
3
3
authors = [" Jishnu Bhattacharya" ]
4
- version = " 0.8.4 "
4
+ version = " 0.8.5 "
5
5
6
6
[deps ]
7
7
DataStructures = " 864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3
3
ParallelUtilities = " fad6cfc8-4f83-11e9-06cc-151124046ad0"
4
4
5
5
[compat ]
6
- Documenter = " 0.25 "
6
+ Documenter = " 0.27 "
Original file line number Diff line number Diff line change 42
42
43
43
We compare the performance of the serial and parallel evaluations using 20 cores on one node:
44
44
45
+ We define a caller function first
46
+
47
+ ``` julia
48
+ function compare_with_serial ()
49
+ # precompile
50
+ main_mapreduce (0 )
51
+ main_pmapreduce (0 )
52
+
53
+ # time
54
+ println (" Tesing serial" )
55
+ A = @time main_mapreduce (5e-6 )
56
+ println (" Tesing parallel" )
57
+ B = @time main_pmapreduce (5e-6 )
58
+
59
+ # check results
60
+ println (" Results match : " , A == B)
61
+ end
62
+ ```
63
+
64
+ We run this caller on the cluster:
45
65
``` julia
46
66
julia> compare_with_serial ()
47
67
Tesing serial
You can’t perform that action at this time.
0 commit comments