File: do_gap_tcc

package info (click to toggle)
suitesparse 1%3A7.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 254,920 kB
  • sloc: ansic: 1,134,743; cpp: 46,133; makefile: 4,875; fortran: 2,087; java: 1,826; sh: 996; ruby: 725; python: 495; asm: 371; sed: 166; awk: 44
file content (44 lines) | stat: -rwxr-xr-x 1,574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash

# LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
# See additional acknowledgments in the LICENSE file,
# or contact permission@sei.cmu.edu for the full terms.

# do_gap_tcc: run the GAP benchmarks for Triangle Counting

# Usage:
#
#   To run using *.mtx format, with the files in ../../../GAP:
#
#       ./do_gap_tcc > myoutput.txt
#
#   To run using binary *.grb format, with the files in ../../../GAP:
#
#       ./do_gap_tcc grb > myoutput.txt
#
#   To run using binary *.mtx format, with the files in /my/stuff/GAP
#
#       ./do_gap_tcc mtx /my/stuff/GAP > myoutput.txt
#
#   To run using binary *.mtx format, with the files in /my/stuff/GAP
#
#       ./do_gap_tcc grb /my/stuff/GAP > myoutput.txt

echo " "
echo "======================================================================"
echo "GAP benchmarks using LAGraph+GraphBLAS: Triangle Centrality"
echo "======================================================================"

if [ -z "$1" ]; then KIND="mtx" ; else KIND=$1 ; fi
echo "Matrix input file format: " $KIND

if [ -z "$2" ]; then GAP="../../../GAP" ; else GAP=$2 ; fi
echo "GAP matrices located in:  " $GAP

../../build/experimental/benchmark/tcc_demo $GAP/GAP-kron/GAP-kron.$KIND
../../build/experimental/benchmark/tcc_demo $GAP/GAP-urand/GAP-urand.$KIND
../../build/experimental/benchmark/tcc_demo $GAP/GAP-twitter/GAP-twitter.$KIND
../../build/experimental/benchmark/tcc_demo $GAP/GAP-web/GAP-web.$KIND
../../build/experimental/benchmark/tcc_demo $GAP/GAP-road/GAP-road.$KIND