@@ -6,7 +6,7 @@ OpenMP-based parallel program for counting the number of triangles in a sparse g
6
6
- CMake 2.8, found at http://www.cmake.org/ , as well as GNU make.
7
7
- Download, build, and install [ GKlib] ( https://github.com/KarypisLab/GKlib ) .
8
8
9
- Assumming that the above are available, two commands should suffice to
9
+ Assuming that the above are available, two commands should suffice to
10
10
build the software:
11
11
```
12
12
make config
@@ -26,6 +26,7 @@ Configuration options are:
26
26
cc=[compiler] - The C compiler to use [default: gcc]
27
27
prefix=[PATH] - Set the installation prefix [default: ~/local]
28
28
gklib_path=[PATH] - Where GKlib was installed [default: ~/local]
29
+ openmp=not-set - To build a serial version
29
30
```
30
31
31
32
@@ -41,6 +42,29 @@ For usage information just type
41
42
```
42
43
gktc -help
43
44
```
45
+ and here is a sample run:
46
+ ```
47
+ gktc -nthreads=4 test/p2p-Gnutella31.metis
48
+ Reading graph test/p2p-Gnutella31.metis...
49
+
50
+ -----------------
51
+ infile: test/p2p-Gnutella31.metis
52
+ #nvtxs: 62586
53
+ #nedges: 295784
54
+ nthreads: 4
55
+
56
+ & compatible maxhmsize: 255, startv: 23
57
+
58
+ Results...
59
+ #probes: 209251; rate: 249.98 MP/sec
60
+
61
+ Timings...
62
+ preprocessing: 0.002s
63
+ triangle counting: 0.001s
64
+ total (/x i/o): 0.003s
65
+ -----------------
66
+ ```
67
+
44
68
45
69
## Other make commands
46
70
make uninstall
@@ -54,54 +78,61 @@ gktc -help
54
78
55
79
56
80
## Performance
57
- The following shows a sample of gktc's performance on Intel's KnightsLanding
81
+ The following shows a sample of gktc's performance on Intel's Knights Landing
58
82
processor:
59
83
60
84
```
85
+ total: total time excluding I/O
86
+ ppt: pre-processing time
87
+ tct: triangle counting time
88
+ speedup: relative to p=1
89
+
61
90
rmat scale25
62
91
----------------------------------------
63
- #p total ppt tct speedup
64
- 1 767.4 141.9 625.5
65
- 5 154.4 29.1 125.2 5.0x
66
- 10 77.2 14.5 62.6 9.9x
67
- 20 38.6 7.3 31.2 19.9x
68
- 40 19.6 3.7 16.1 39.2x
69
- 68 12.2 2.2 9.9 62.9x
70
- 136 9.3 1.7 7.6 82.5x
71
- 272 10.1 1.5 8.6 76.0x
92
+ #p total ppt tct speedup
93
+ 1 767.4s 141.9s 625.5s
94
+ 5 154.4s 29.1s 125.2s 5.0x
95
+ 10 77.2s 14.5s 62.6s 9.9x
96
+ 20 38.6s 7.3s 31.2s 19.9x
97
+ 40 19.6s 3.7s 16.1s 39.2x
98
+ 68 12.2s 2.2s 9.9s 62.9x
99
+ 136 9.3s 1.7s 7.6s 82.5x
100
+ 272 10.1s 1.5s 8.6s 76.0x
72
101
73
102
twitter
74
103
----------------------------------------
75
- #p total ppt tct speedup
76
- 1 1422.6 307.7 1114.9
77
- 5 285.7 62.3 223.2 5.0x
78
- 10 143.4 31.2 112.1 9.9x
79
- 20 71.4 15.6 55.8 19.9x
80
- 40 37.1 7.9 29.1 38.4x
81
- 68 23.1 4.8 18.3 61.6x
82
- 136 17.1 3.4 13.6 83.2x
83
- 272 19.3 3.2 16.0 73.7x
104
+ #p total ppt tct speedup
105
+ 1 1422.6s 307.7s 1114.9s
106
+ 5 285.7s 62.3s 223.2s 5.0x
107
+ 10 143.4s 31.2s 112.1s 9.9x
108
+ 20 71.4s 15.6s 55.8s 19.9x
109
+ 40 37.1s 7.9s 29.1s 38.4x
110
+ 68 23.1s 4.8s 18.3s 61.6x
111
+ 136 17.1s 3.4s 13.6s 83.2x
112
+ 272 19.3s 3.2s 16.0s 73.7x
84
113
85
114
friendster
86
115
----------------------------------------
87
- #p total ppt tct speedup
88
- 1 1618.5 421.3 1196.7
89
- 5 316.8 84.8 231.5 5.1x
90
- 10 159.0 42.5 116.1 10.2x
91
- 20 79.5 21.3 57.8 20.4x
92
- 40 40.6 10.7 29.4 39.9x
93
- 68 25.5 6.5 18.4 63.5x
94
- 136 16.9 4.5 11.7 95.8x
95
- 272 13.5 3.6 8.9 119.9x
116
+ #p total ppt tct speedup
117
+ 1 1618.5s 421.3s 1196.7s
118
+ 5 316.8s 84.8s 231.5s 5.1x
119
+ 10 159.0s 42.5s 116.1s 10.2x
120
+ 20 79.5s 21.3s 57.8s 20.4x
121
+ 40 40.6s 10.7s 29.4s 39.9x
122
+ 68 25.5s 6.5s 18.4s 63.5x
123
+ 136 16.9s 4.5s 11.7s 95.8x
124
+ 272 13.5s 3.6s 8.9s 119.9x
96
125
```
97
126
98
127
## Citing
99
128
The parallel algorithm implemented is based on the one described in
100
129
101
- [ "Exploring Optimizations on Shared-memory Platforms for Parallel Triangle Counting
102
- Algorithms". Ancy Sarah Tom, Narayanan Sundaram, Nesreen K. Ahmed, Shaden Smith,
130
+ [ __ "Exploring Optimizations on Shared-memory Platforms for Parallel Triangle Counting
131
+ Algorithms." __ Ancy Sarah Tom, Narayanan Sundaram, Nesreen K. Ahmed, Shaden Smith,
103
132
Stijn Eyerman, Midhunchandra Kodiyath, Ibrahim Hur, Fabrizio Petrini, and George
104
133
Karypis. IEEE High Performance Extreme Computing Conference (HPEC),
105
- 2017] ( http://glaros.dtc.umn.edu/gkhome/node/1214 ) , which was one of the finalists for
106
- the [ GraphChallenge 2017 competition] ( http://graphchallenge.mit.edu/ ) .
134
+ 2017] ( http://glaros.dtc.umn.edu/gkhome/node/1214 )
135
+
136
+ This was one of the finalists for the [ GraphChallenge 2017
137
+ competition] ( http://graphchallenge.mit.edu/ ) .
107
138
0 commit comments