|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. |
| 4 | +# SPDX-License-Identifier: BSD-2-Clause |
| 5 | +# See additional acknowledgments in the LICENSE file, |
| 6 | +# or contact permission@sei.cmu.edu for the full terms. |
| 7 | + |
| 8 | +# do_gap_tc: run the GAP benchmarks for Triangle Counting |
| 9 | + |
| 10 | +# Usage: |
| 11 | +# |
| 12 | +# To run using *.mtx format, with the files in ../../../GAP: |
| 13 | +# |
| 14 | +# ./do_gap_tc > myoutput.txt |
| 15 | +# |
| 16 | +# To run using binary *.grb format, with the files in ../../../GAP: |
| 17 | +# |
| 18 | +# ./do_gap_tc grb > myoutput.txt |
| 19 | +# |
| 20 | +# To run using binary *.mtx format, with the files in /my/stuff/GAP |
| 21 | +# |
| 22 | +# ./do_gap_tc mtx /my/stuff/GAP > myoutput.txt |
| 23 | +# |
| 24 | +# To run using binary *.mtx format, with the files in /my/stuff/GAP |
| 25 | +# |
| 26 | +# ./do_gap_tc grb /my/stuff/GAP > myoutput.txt |
| 27 | + |
| 28 | +echo " " |
| 29 | +echo "======================================================================" |
| 30 | +echo "GAP benchmarks using LAGraph+GraphBLAS: Triangle Counting" |
| 31 | +echo "======================================================================" |
| 32 | + |
| 33 | +export OMP_PLACES=cores |
| 34 | +export OMP_PROC_BIND=spread |
| 35 | +# export OMP_DISPLAY_ENV=true |
| 36 | +hostname |
| 37 | +printenv | grep OMP |
| 38 | + |
| 39 | +if [ -z "$1" ]; then KIND="mtx" ; else KIND=$1 ; fi |
| 40 | +echo "Matrix input file format: " $KIND |
| 41 | + |
| 42 | +if [ -z "$2" ]; then GAP="../../../GAP" ; else GAP=$2 ; fi |
| 43 | +echo "GAP matrices located in: " $GAP |
| 44 | + |
| 45 | +../../build/src/benchmark/tc_gpu_demo $GAP/GAP-urand/GAP-urand.$KIND |
| 46 | +../../build/src/benchmark/tc_gpu_demo $GAP/GAP-kron/GAP-kron.$KIND |
| 47 | +../../build/src/benchmark/tc_gpu_demo $GAP/GAP-twitter/GAP-twitter.$KIND |
| 48 | +../../build/src/benchmark/tc_gpu_demo $GAP/GAP-web/GAP-web.$KIND |
| 49 | +../../build/src/benchmark/tc_gpu_demo $GAP/GAP-road/GAP-road.$KIND |
| 50 | + |
0 commit comments