|
| 1 | +# ######################################################################## |
| 2 | +# Copyright 2015 Advanced Micro Devices, Inc. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# ######################################################################## |
| 16 | + |
1 | 17 | #!/bin/bash |
2 | 18 |
|
3 | 19 | #Executable |
4 | | -clsparse_bench=~/code/github/clMathLibraries/bin/clSPARSE/release/clSPARSE-build/staging/clsparse-bench |
| 20 | +bench_root_dir=~/code/github/kknox/bin/clSPARSE/release/clSPARSE-build/staging |
| 21 | +clsparse_bench=${bench_root_dir}/clsparse-bench |
| 22 | +function=spmdv |
5 | 23 |
|
6 | 24 | #Data directories |
7 | | -mtx_cant=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/cant |
8 | | -mtx_consph=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/consph |
9 | | -mtx_cop20k_A=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/cop20k_A |
10 | | -mtx_mac_econ_fwd500=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/mac_econ_fwd500 |
11 | | -mtx_mc2depi=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/mc2depi |
12 | | -mtx_pdb1HYS=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/pdb1HYS |
13 | | -mtx_pwtk=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/pwtk |
14 | | -mtx_rail4284=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/rail4284 |
15 | | -mtx_rma10=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/rma10 |
16 | | -mtx_scircuit=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/scircuit |
17 | | -mtx_shipsec1=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/shipsec1 |
18 | | -mtx_webbase_1M=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland/webbase-1M |
| 25 | +data_root_dir=~/code/github/clMathLibraries/bin/deps/release/Externals/MTX/Bell_Garland |
| 26 | +mtx_cant=${data_root_dir}/cant |
| 27 | +mtx_consph=${data_root_dir}/consph |
| 28 | +mtx_cop20k_A=${data_root_dir}/cop20k_A |
| 29 | +mtx_mac_econ_fwd500=${data_root_dir}/mac_econ_fwd500 |
| 30 | +mtx_mc2depi=${data_root_dir}/mc2depi |
| 31 | +mtx_pdb1HYS=${data_root_dir}/pdb1HYS |
| 32 | +mtx_pwtk=${data_root_dir}/pwtk |
| 33 | +mtx_rail4284=${data_root_dir}/rail4284 |
| 34 | +mtx_rma10=${data_root_dir}/rma10 |
| 35 | +mtx_scircuit=${data_root_dir}/scircuit |
| 36 | +mtx_shipsec1=${data_root_dir}/shipsec1 |
| 37 | +mtx_webbase_1M=${data_root_dir}/webbase-1M |
19 | 38 |
|
20 | | -clsparse_timing_dir=timings/spm-dv/14.301 |
| 39 | +clsparse_timing_dir=timings/${function}/14.301 |
21 | 40 | mkdir -p ${clsparse_timing_dir} |
22 | | -${clsparse_bench} -f spmdv -d ${mtx_cant} > ${clsparse_timing_dir}/cant.txt |
23 | | -${clsparse_bench} -f spmdv -d ${mtx_consph} > ${clsparse_timing_dir}/consph.txt |
24 | | -${clsparse_bench} -f spmdv -d ${mtx_cop20k_A} > ${clsparse_timing_dir}/cop20k_A.txt |
25 | | -${clsparse_bench} -f spmdv -d ${mtx_mac_econ_fwd500} > ${clsparse_timing_dir}/mac_econ_fwd500.txt |
26 | | -${clsparse_bench} -f spmdv -d ${mtx_mc2depi} > ${clsparse_timing_dir}/mc2depi.txt |
27 | | -${clsparse_bench} -f spmdv -d ${mtx_pdb1HYS} > ${clsparse_timing_dir}/pdb1HYS.txt |
28 | | -${clsparse_bench} -f spmdv -d ${mtx_pwtk} > ${clsparse_timing_dir}/pwtk.txt |
29 | | -${clsparse_bench} -f spmdv -d ${mtx_rail4284} > ${clsparse_timing_dir}/rail4284.txt |
30 | | -${clsparse_bench} -f spmdv -d ${mtx_rma10} > ${clsparse_timing_dir}/rma10.txt |
31 | | -${clsparse_bench} -f spmdv -d ${mtx_scircuit} > ${clsparse_timing_dir}/scircuit.txt |
32 | | -${clsparse_bench} -f spmdv -d ${mtx_shipsec1} > ${clsparse_timing_dir}/shipsec1.txt |
33 | | -${clsparse_bench} -f spmdv -d ${mtx_webbase_1M} > ${clsparse_timing_dir}/webbase_1M.txt |
| 41 | + |
| 42 | +${clsparse_bench} -f ${function} -d ${mtx_cant} > ${clsparse_timing_dir}/cant.txt |
| 43 | +${clsparse_bench} -f ${function} -d ${mtx_consph} > ${clsparse_timing_dir}/consph.txt |
| 44 | +${clsparse_bench} -f ${function} -d ${mtx_cop20k_A} > ${clsparse_timing_dir}/cop20k_A.txt |
| 45 | +${clsparse_bench} -f ${function} -d ${mtx_mac_econ_fwd500} > ${clsparse_timing_dir}/mac_econ_fwd500.txt |
| 46 | +${clsparse_bench} -f ${function} -d ${mtx_mc2depi} > ${clsparse_timing_dir}/mc2depi.txt |
| 47 | +${clsparse_bench} -f ${function} -d ${mtx_pdb1HYS} > ${clsparse_timing_dir}/pdb1HYS.txt |
| 48 | +${clsparse_bench} -f ${function} -d ${mtx_pwtk} > ${clsparse_timing_dir}/pwtk.txt |
| 49 | +${clsparse_bench} -f ${function} -d ${mtx_rail4284} > ${clsparse_timing_dir}/rail4284.txt |
| 50 | +${clsparse_bench} -f ${function} -d ${mtx_rma10} > ${clsparse_timing_dir}/rma10.txt |
| 51 | +${clsparse_bench} -f ${function} -d ${mtx_scircuit} > ${clsparse_timing_dir}/scircuit.txt |
| 52 | +${clsparse_bench} -f ${function} -d ${mtx_shipsec1} > ${clsparse_timing_dir}/shipsec1.txt |
| 53 | +${clsparse_bench} -f ${function} -d ${mtx_webbase_1M} > ${clsparse_timing_dir}/webbase_1M.txt |
0 commit comments