1function test71_table
2%TEST71_TABLE print the table for triangle counting results
3
4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
5% SPDX-License-Identifier: Apache-2.0
6
7load test71_results
8
9Kokkos = [
102292 0.00441 79.9
112293 0.00502 72.5
122289 0.00580 70.0
132284 0.00390 108
142286 0.00611 76.8
152287 0.00630 80.1
162305 0.0754  30.7
172306 0.0177 133
182307 0.0184 132
192294 0.497 31.5
202285 0.733 58.5
211842 0.232 199
22750 nan nan
231904 nan nan
242482 nan nan
25916 nan nan
262276 nan nan
272662 nan nan
28]
29
30index = ssget ;
31nmat = size (Kokkos,1) ;
32
33for k = 1:nmat
34    id = Kokkos (k,1) ;
35    i = find (f == id) ;
36    fprintf ('%%------------------------------------\n') ;
37    fprintf ('%s/%s & %d & %d & %d &\n', ...
38        index.Group{id}, index.Name{id}, ...
39        Nnodes (i), Nedges (i), Ntri (i)) ;
40
41    t_matlab  = T (i,3) ;
42    t_grbdot   = T (i,2) ;
43    t_grbouter = T (i,1) ;
44    t_kokkos  = Kokkos (k,2) ;
45
46    e = Nedges (i) / 1e6 ;
47
48    fprintf ('%10.3f & %8.2f &  %% MATLAB\n',   t_matlab,  e/t_matlab) ;
49    fprintf ('%10.3f & %8.2f &  %% GB:dot\n',   t_grbdot,   e/t_grbdot) ;
50    fprintf ('%10.3f & %8.2f &  %% GB:outer\n', t_grbouter, e/t_grbouter) ;
51    fprintf ('%10.3f & %8.2f & %8.1f \\\\ %% Kokkos\n', t_kokkos,  e/t_kokkos, t_grbouter / t_kokkos) ;
52
53    % r_kokkos   = Kokkos (k,3) ;
54    % t_kokkos = e / r_kokkos ;
55    % fprintf ('%10.4f & %8.2f \\\\ %% Kokkos\n',   t_kokkos,  e/t_kokkos) ;
56
57end
58
59
60