/*------------------------------------------------------------------------------------------------* * Copyright (C) by the DBCSR developers group - All rights reserved * * This file is part of the DBCSR library. * * * * For information on the license, see the LICENSE file. * * For further information please visit https://dbcsr.cp2k.org * * SPDX-License-Identifier: GPL-2.0+ * *------------------------------------------------------------------------------------------------*/ #include <cstdio> #include <cstdlib> #include <vector> #include <array> #include <algorithm> #include "libsmm_acc_benchmark.h" #include "libsmm_acc.h" std::vector<Triplet> combinations(std::vector<int> to_combine) { std::vector<Triplet> v; size_t len = to_combine.size(); for (size_t i=0; i<len; i++) { for (size_t j=0; j<len; j++) { for (size_t k=0; k<len; k++) { v.push_back({to_combine[i], to_combine[j], to_combine[k]}); } } } return v; } /****************************************************************************\ \brief Checks correctness of and measures performance of randomly selected libsmm_acc multiplication kernels. \returns -1 for invalid options, n>0 with n being the number of errors, 0 otherwise \****************************************************************************/ int main(int argc, char* argv[]) { if (argc < 2) { printf("Usage: %s <autotuned|predicted>\n", argv[0]); return -1; } printf("Time kernels: %s\n", argv[1]); std::vector<Triplet> libsmm_acc_triplets; if (argv[1] == std::string("autotuned")) { libsmm_acc_triplets = { { 4, 4, 4}, { 4, 4, 5}, { 4, 4, 6}, { 4, 4, 7}, { 4, 4, 8}, { 4, 4, 9}, { 4, 4, 10}, { 4, 4, 13}, { 4, 4, 15}, { 4, 4, 25}, { 4, 4, 26}, { 4, 4, 28}, { 4, 4, 32}, { 4, 4, 45}, { 4, 5, 4}, { 4, 5, 5}, { 4, 5, 6}, { 4, 5, 7}, { 4, 5, 8}, { 4, 5, 9}, { 4, 5, 13}, { 4, 5, 25}, { 4, 5, 26}, { 4, 5, 28}, { 4, 5, 32}, { 4, 5, 45}, { 4, 6, 4}, { 4, 6, 5}, { 4, 6, 6}, { 4, 6, 7}, { 4, 6, 8}, { 4, 6, 9}, { 4, 7, 4}, { 4, 7, 5}, { 4, 7, 6}, { 4, 7, 7}, { 4, 7, 8}, { 4, 7, 9}, { 4, 7, 13}, { 4, 7, 25}, { 4, 7, 26}, { 4, 7, 28}, { 4, 7, 32}, { 4, 7, 45}, { 4, 8, 4}, { 4, 8, 5}, { 4, 8, 6}, { 4, 8, 7}, { 4, 8, 8}, { 4, 8, 9}, { 4, 9, 4}, { 4, 9, 5}, { 4, 9, 6}, { 4, 9, 7}, { 4, 9, 8}, { 4, 9, 9}, { 4, 9, 13}, { 4, 9, 25}, { 4, 9, 26}, { 4, 9, 28}, { 4, 9, 32}, { 4, 9, 45}, { 4, 10, 4}, { 4, 10, 10}, { 4, 10, 15}, { 4, 13, 4}, { 4, 13, 5}, { 4, 13, 7}, { 4, 13, 9}, { 4, 13, 13}, { 4, 13, 25}, { 4, 13, 26}, { 4, 13, 28}, { 4, 13, 32}, { 4, 13, 45}, { 4, 15, 4}, { 4, 15, 10}, { 4, 15, 15}, { 4, 25, 4}, { 4, 25, 5}, { 4, 25, 7}, { 4, 25, 9}, { 4, 25, 13}, { 4, 25, 25}, { 4, 25, 26}, { 4, 25, 28}, { 4, 25, 32}, { 4, 25, 45}, { 4, 26, 4}, { 4, 26, 5}, { 4, 26, 7}, { 4, 26, 9}, { 4, 26, 13}, { 4, 26, 25}, { 4, 26, 26}, { 4, 26, 28}, { 4, 26, 32}, { 4, 26, 45}, { 4, 28, 4}, { 4, 28, 5}, { 4, 28, 7}, { 4, 28, 9}, { 4, 28, 13}, { 4, 28, 25}, { 4, 28, 26}, { 4, 28, 28}, { 4, 28, 32}, { 4, 28, 45}, { 4, 32, 4}, { 4, 32, 5}, { 4, 32, 7}, { 4, 32, 9}, { 4, 32, 13}, { 4, 32, 25}, { 4, 32, 26}, { 4, 32, 28}, { 4, 32, 32}, { 4, 32, 45}, { 4, 45, 4}, { 4, 45, 5}, { 4, 45, 7}, { 4, 45, 9}, { 4, 45, 13}, { 4, 45, 25}, { 4, 45, 26}, { 4, 45, 28}, { 4, 45, 32}, { 4, 45, 45}, { 5, 4, 4}, { 5, 4, 5}, { 5, 4, 6}, { 5, 4, 7}, { 5, 4, 8}, { 5, 4, 9}, { 5, 4, 13}, { 5, 4, 25}, { 5, 4, 26}, { 5, 4, 28}, { 5, 4, 32}, { 5, 4, 45}, { 5, 5, 4}, { 5, 5, 5}, { 5, 5, 6}, { 5, 5, 7}, { 5, 5, 8}, { 5, 5, 9}, { 5, 5, 12}, { 5, 5, 13}, { 5, 5, 16}, { 5, 5, 24}, { 5, 5, 25}, { 5, 5, 26}, { 5, 5, 28}, { 5, 5, 32}, { 5, 5, 45}, { 5, 6, 4}, { 5, 6, 5}, { 5, 6, 6}, { 5, 6, 7}, { 5, 6, 8}, { 5, 6, 9}, { 5, 7, 4}, { 5, 7, 5}, { 5, 7, 6}, { 5, 7, 7}, { 5, 7, 8}, { 5, 7, 9}, { 5, 7, 13}, { 5, 7, 25}, { 5, 7, 26}, { 5, 7, 28}, { 5, 7, 32}, { 5, 7, 45}, { 5, 8, 4}, { 5, 8, 5}, { 5, 8, 6}, { 5, 8, 7}, { 5, 8, 8}, { 5, 8, 9}, { 5, 9, 4}, { 5, 9, 5}, { 5, 9, 6}, { 5, 9, 7}, { 5, 9, 8}, { 5, 9, 9}, { 5, 9, 13}, { 5, 9, 25}, { 5, 9, 26}, { 5, 9, 28}, { 5, 9, 32}, { 5, 9, 45}, { 5, 12, 5}, { 5, 12, 12}, { 5, 12, 13}, { 5, 12, 26}, { 5, 12, 32}, { 5, 13, 4}, { 5, 13, 5}, { 5, 13, 7}, { 5, 13, 9}, { 5, 13, 12}, { 5, 13, 13}, { 5, 13, 16}, { 5, 13, 24}, { 5, 13, 25}, { 5, 13, 26}, { 5, 13, 28}, { 5, 13, 32}, { 5, 13, 45}, { 5, 16, 5}, { 5, 16, 13}, { 5, 16, 16}, { 5, 16, 32}, { 5, 24, 5}, { 5, 24, 13}, { 5, 24, 24}, { 5, 24, 26}, { 5, 24, 32}, { 5, 25, 4}, { 5, 25, 5}, { 5, 25, 7}, { 5, 25, 9}, { 5, 25, 13}, { 5, 25, 25}, { 5, 25, 26}, { 5, 25, 28}, { 5, 25, 32}, { 5, 25, 45}, { 5, 26, 4}, { 5, 26, 5}, { 5, 26, 7}, { 5, 26, 9}, { 5, 26, 12}, { 5, 26, 13}, { 5, 26, 24}, { 5, 26, 25}, { 5, 26, 26}, { 5, 26, 28}, { 5, 26, 32}, { 5, 26, 45}, { 5, 28, 4}, { 5, 28, 5}, { 5, 28, 7}, { 5, 28, 9}, { 5, 28, 13}, { 5, 28, 25}, { 5, 28, 26}, { 5, 28, 28}, { 5, 28, 32}, { 5, 28, 45}, { 5, 32, 4}, { 5, 32, 5}, { 5, 32, 7}, { 5, 32, 9}, { 5, 32, 12}, { 5, 32, 13}, { 5, 32, 16}, { 5, 32, 24}, { 5, 32, 25}, { 5, 32, 26}, { 5, 32, 28}, { 5, 32, 32}, { 5, 32, 45}, { 5, 45, 4}, { 5, 45, 5}, { 5, 45, 7}, { 5, 45, 9}, { 5, 45, 13}, { 5, 45, 25}, { 5, 45, 26}, { 5, 45, 28}, { 5, 45, 32}, { 5, 45, 45}, { 6, 4, 4}, { 6, 4, 5}, { 6, 4, 6}, { 6, 4, 7}, { 6, 4, 8}, { 6, 4, 9}, { 6, 5, 4}, { 6, 5, 5}, { 6, 5, 6}, { 6, 5, 7}, { 6, 5, 8}, { 6, 5, 9}, { 6, 6, 4}, { 6, 6, 5}, { 6, 6, 6}, { 6, 6, 7}, { 6, 6, 8}, { 6, 6, 9}, { 6, 7, 4}, { 6, 7, 5}, { 6, 7, 6}, { 6, 7, 7}, { 6, 7, 8}, { 6, 7, 9}, { 6, 8, 4}, { 6, 8, 5}, { 6, 8, 6}, { 6, 8, 7}, { 6, 8, 8}, { 6, 8, 9}, { 6, 9, 4}, { 6, 9, 5}, { 6, 9, 6}, { 6, 9, 7}, { 6, 9, 8}, { 6, 9, 9}, { 7, 4, 4}, { 7, 4, 5}, { 7, 4, 6}, { 7, 4, 7}, { 7, 4, 8}, { 7, 4, 9}, { 7, 4, 13}, { 7, 4, 25}, { 7, 4, 26}, { 7, 4, 28}, { 7, 4, 32}, { 7, 4, 45}, { 7, 5, 4}, { 7, 5, 5}, { 7, 5, 6}, { 7, 5, 7}, { 7, 5, 8}, { 7, 5, 9}, { 7, 5, 13}, { 7, 5, 25}, { 7, 5, 26}, { 7, 5, 28}, { 7, 5, 32}, { 7, 5, 45}, { 7, 6, 4}, { 7, 6, 5}, { 7, 6, 6}, { 7, 6, 7}, { 7, 6, 8}, { 7, 6, 9}, { 7, 7, 4}, { 7, 7, 5}, { 7, 7, 6}, { 7, 7, 7}, { 7, 7, 8}, { 7, 7, 9}, { 7, 7, 13}, { 7, 7, 25}, { 7, 7, 26}, { 7, 7, 28}, { 7, 7, 32}, { 7, 7, 45}, { 7, 8, 4}, { 7, 8, 5}, { 7, 8, 6}, { 7, 8, 7}, { 7, 8, 8}, { 7, 8, 9}, { 7, 9, 4}, { 7, 9, 5}, { 7, 9, 6}, { 7, 9, 7}, { 7, 9, 8}, { 7, 9, 9}, { 7, 9, 13}, { 7, 9, 25}, { 7, 9, 26}, { 7, 9, 28}, { 7, 9, 32}, { 7, 9, 45}, { 7, 13, 4}, { 7, 13, 5}, { 7, 13, 7}, { 7, 13, 9}, { 7, 13, 13}, { 7, 13, 25}, { 7, 13, 26}, { 7, 13, 28}, { 7, 13, 32}, { 7, 13, 45}, { 7, 25, 4}, { 7, 25, 5}, { 7, 25, 7}, { 7, 25, 9}, { 7, 25, 13}, { 7, 25, 25}, { 7, 25, 26}, { 7, 25, 28}, { 7, 25, 32}, { 7, 25, 45}, { 7, 26, 4}, { 7, 26, 5}, { 7, 26, 7}, { 7, 26, 9}, { 7, 26, 13}, { 7, 26, 25}, { 7, 26, 26}, { 7, 26, 28}, { 7, 26, 32}, { 7, 26, 45}, { 7, 28, 4}, { 7, 28, 5}, { 7, 28, 7}, { 7, 28, 9}, { 7, 28, 13}, { 7, 28, 25}, { 7, 28, 26}, { 7, 28, 28}, { 7, 28, 32}, { 7, 28, 45}, { 7, 32, 4}, { 7, 32, 5}, { 7, 32, 7}, { 7, 32, 9}, { 7, 32, 13}, { 7, 32, 25}, { 7, 32, 26}, { 7, 32, 28}, { 7, 32, 32}, { 7, 32, 45}, { 7, 45, 4}, { 7, 45, 5}, { 7, 45, 7}, { 7, 45, 9}, { 7, 45, 13}, { 7, 45, 25}, { 7, 45, 26}, { 7, 45, 28}, { 7, 45, 32}, { 7, 45, 45}, { 8, 4, 4}, { 8, 4, 5}, { 8, 4, 6}, { 8, 4, 7}, { 8, 4, 8}, { 8, 4, 9}, { 8, 5, 4}, { 8, 5, 5}, { 8, 5, 6}, { 8, 5, 7}, { 8, 5, 8}, { 8, 5, 9}, { 8, 6, 4}, { 8, 6, 5}, { 8, 6, 6}, { 8, 6, 7}, { 8, 6, 8}, { 8, 6, 9}, { 8, 7, 4}, { 8, 7, 5}, { 8, 7, 6}, { 8, 7, 7}, { 8, 7, 8}, { 8, 7, 9}, { 8, 8, 4}, { 8, 8, 5}, { 8, 8, 6}, { 8, 8, 7}, { 8, 8, 8}, { 8, 8, 9}, { 8, 9, 4}, { 8, 9, 5}, { 8, 9, 6}, { 8, 9, 7}, { 8, 9, 8}, { 8, 9, 9}, { 9, 4, 4}, { 9, 4, 5}, { 9, 4, 6}, { 9, 4, 7}, { 9, 4, 8}, { 9, 4, 9}, { 9, 4, 13}, { 9, 4, 25}, { 9, 4, 26}, { 9, 4, 28}, { 9, 4, 32}, { 9, 4, 45}, { 9, 5, 4}, { 9, 5, 5}, { 9, 5, 6}, { 9, 5, 7}, { 9, 5, 8}, { 9, 5, 9}, { 9, 5, 13}, { 9, 5, 25}, { 9, 5, 26}, { 9, 5, 28}, { 9, 5, 32}, { 9, 5, 45}, { 9, 6, 4}, { 9, 6, 5}, { 9, 6, 6}, { 9, 6, 7}, { 9, 6, 8}, { 9, 6, 9}, { 9, 7, 4}, { 9, 7, 5}, { 9, 7, 6}, { 9, 7, 7}, { 9, 7, 8}, { 9, 7, 9}, { 9, 7, 13}, { 9, 7, 25}, { 9, 7, 26}, { 9, 7, 28}, { 9, 7, 32}, { 9, 7, 45}, { 9, 8, 4}, { 9, 8, 5}, { 9, 8, 6}, { 9, 8, 7}, { 9, 8, 8}, { 9, 8, 9}, { 9, 9, 4}, { 9, 9, 5}, { 9, 9, 6}, { 9, 9, 7}, { 9, 9, 8}, { 9, 9, 9}, { 9, 9, 10}, { 9, 9, 12}, { 9, 9, 13}, { 9, 9, 22}, { 9, 9, 25}, { 9, 9, 26}, { 9, 9, 28}, { 9, 9, 32}, { 9, 9, 45}, { 9, 10, 9}, { 9, 10, 10}, { 9, 10, 12}, { 9, 10, 32}, { 9, 12, 9}, { 9, 12, 10}, { 9, 12, 12}, { 9, 12, 32}, { 9, 13, 4}, { 9, 13, 5}, { 9, 13, 7}, { 9, 13, 9}, { 9, 13, 13}, { 9, 13, 25}, { 9, 13, 26}, { 9, 13, 28}, { 9, 13, 32}, { 9, 13, 45}, { 9, 22, 9}, { 9, 22, 22}, { 9, 22, 32}, { 9, 25, 4}, { 9, 25, 5}, { 9, 25, 7}, { 9, 25, 9}, { 9, 25, 13}, { 9, 25, 25}, { 9, 25, 26}, { 9, 25, 28}, { 9, 25, 32}, { 9, 25, 45}, { 9, 26, 4}, { 9, 26, 5}, { 9, 26, 7}, { 9, 26, 9}, { 9, 26, 13}, { 9, 26, 25}, { 9, 26, 26}, { 9, 26, 28}, { 9, 26, 32}, { 9, 26, 45}, { 9, 28, 4}, { 9, 28, 5}, { 9, 28, 7}, { 9, 28, 9}, { 9, 28, 13}, { 9, 28, 25}, { 9, 28, 26}, { 9, 28, 28}, { 9, 28, 32}, { 9, 28, 45}, { 9, 32, 4}, { 9, 32, 5}, { 9, 32, 7}, { 9, 32, 9}, { 9, 32, 10}, { 9, 32, 12}, { 9, 32, 13}, { 9, 32, 22}, { 9, 32, 25}, { 9, 32, 26}, { 9, 32, 28}, { 9, 32, 32}, { 9, 32, 45}, { 9, 45, 4}, { 9, 45, 5}, { 9, 45, 7}, { 9, 45, 9}, { 9, 45, 13}, { 9, 45, 25}, { 9, 45, 26}, { 9, 45, 28}, { 9, 45, 32}, { 9, 45, 45}, {10, 4, 4}, {10, 4, 10}, {10, 4, 15}, {10, 9, 9}, {10, 9, 10}, {10, 9, 12}, {10, 9, 32}, {10, 10, 4}, {10, 10, 9}, {10, 10, 10}, {10, 10, 11}, {10, 10, 12}, {10, 10, 15}, {10, 10, 32}, {10, 12, 9}, {10, 12, 10}, {10, 12, 12}, {10, 12, 32}, {10, 15, 4}, {10, 15, 10}, {10, 15, 15}, {10, 32, 9}, {10, 32, 10}, {10, 32, 12}, {10, 32, 32}, {11, 11, 11}, {11, 11, 12}, {11, 11, 20}, {11, 11, 25}, {11, 11, 32}, {11, 12, 11}, {11, 12, 12}, {11, 12, 20}, {11, 12, 25}, {11, 12, 32}, {11, 20, 11}, {11, 20, 12}, {11, 20, 20}, {11, 20, 25}, {11, 20, 32}, {11, 25, 11}, {11, 25, 12}, {11, 25, 20}, {11, 25, 25}, {11, 25, 32}, {11, 32, 11}, {11, 32, 12}, {11, 32, 20}, {11, 32, 25}, {11, 32, 32}, {12, 5, 5}, {12, 5, 12}, {12, 5, 13}, {12, 5, 26}, {12, 5, 32}, {12, 9, 9}, {12, 9, 10}, {12, 9, 12}, {12, 9, 32}, {12, 10, 9}, {12, 10, 10}, {12, 10, 12}, {12, 10, 32}, {12, 11, 11}, {12, 11, 12}, {12, 11, 20}, {12, 11, 25}, {12, 11, 32}, {12, 12, 5}, {12, 12, 9}, {12, 12, 10}, {12, 12, 11}, {12, 12, 12}, {12, 12, 13}, {12, 12, 16}, {12, 12, 20}, {12, 12, 25}, {12, 12, 26}, {12, 12, 32}, {12, 13, 5}, {12, 13, 12}, {12, 13, 13}, {12, 13, 26}, {12, 13, 32}, {12, 16, 12}, {12, 16, 16}, {12, 16, 32}, {12, 20, 11}, {12, 20, 12}, {12, 20, 20}, {12, 20, 25}, {12, 20, 32}, {12, 25, 11}, {12, 25, 12}, {12, 25, 20}, {12, 25, 25}, {12, 25, 32}, {12, 26, 5}, {12, 26, 12}, {12, 26, 13}, {12, 26, 26}, {12, 26, 32}, {12, 32, 5}, {12, 32, 9}, {12, 32, 10}, {12, 32, 11}, {12, 32, 12}, {12, 32, 13}, {12, 32, 16}, {12, 32, 20}, {12, 32, 25}, {12, 32, 26}, {12, 32, 32}, {13, 4, 4}, {13, 4, 5}, {13, 4, 7}, {13, 4, 9}, {13, 4, 13}, {13, 4, 25}, {13, 4, 26}, {13, 4, 28}, {13, 4, 32}, {13, 4, 45}, {13, 5, 4}, {13, 5, 5}, {13, 5, 7}, {13, 5, 9}, {13, 5, 12}, {13, 5, 13}, {13, 5, 16}, {13, 5, 24}, {13, 5, 25}, {13, 5, 26}, {13, 5, 28}, {13, 5, 32}, {13, 5, 45}, {13, 7, 4}, {13, 7, 5}, {13, 7, 7}, {13, 7, 9}, {13, 7, 13}, {13, 7, 25}, {13, 7, 26}, {13, 7, 28}, {13, 7, 32}, {13, 7, 45}, {13, 9, 4}, {13, 9, 5}, {13, 9, 7}, {13, 9, 9}, {13, 9, 13}, {13, 9, 25}, {13, 9, 26}, {13, 9, 28}, {13, 9, 32}, {13, 9, 45}, {13, 12, 5}, {13, 12, 12}, {13, 12, 13}, {13, 12, 26}, {13, 12, 32}, {13, 13, 4}, {13, 13, 5}, {13, 13, 7}, {13, 13, 9}, {13, 13, 12}, {13, 13, 13}, {13, 13, 14}, {13, 13, 16}, {13, 13, 24}, {13, 13, 25}, {13, 13, 26}, {13, 13, 28}, {13, 13, 32}, {13, 13, 45}, {13, 14, 13}, {13, 14, 14}, {13, 14, 25}, {13, 14, 26}, {13, 14, 32}, {13, 16, 5}, {13, 16, 13}, {13, 16, 16}, {13, 16, 32}, {13, 24, 5}, {13, 24, 13}, {13, 24, 24}, {13, 24, 26}, {13, 24, 32}, {13, 25, 4}, {13, 25, 5}, {13, 25, 7}, {13, 25, 9}, {13, 25, 13}, {13, 25, 14}, {13, 25, 25}, {13, 25, 26}, {13, 25, 28}, {13, 25, 32}, {13, 25, 45}, {13, 26, 4}, {13, 26, 5}, {13, 26, 7}, {13, 26, 9}, {13, 26, 12}, {13, 26, 13}, {13, 26, 14}, {13, 26, 24}, {13, 26, 25}, {13, 26, 26}, {13, 26, 28}, {13, 26, 32}, {13, 26, 45}, {13, 28, 4}, {13, 28, 5}, {13, 28, 7}, {13, 28, 9}, {13, 28, 13}, {13, 28, 25}, {13, 28, 26}, {13, 28, 28}, {13, 28, 32}, {13, 28, 45}, {13, 32, 4}, {13, 32, 5}, {13, 32, 7}, {13, 32, 9}, {13, 32, 12}, {13, 32, 13}, {13, 32, 14}, {13, 32, 16}, {13, 32, 24}, {13, 32, 25}, {13, 32, 26}, {13, 32, 28}, {13, 32, 32}, {13, 32, 45}, {13, 45, 4}, {13, 45, 5}, {13, 45, 7}, {13, 45, 9}, {13, 45, 13}, {13, 45, 25}, {13, 45, 26}, {13, 45, 28}, {13, 45, 32}, {13, 45, 45}, {14, 13, 13}, {14, 13, 14}, {14, 13, 25}, {14, 13, 26}, {14, 13, 32}, {14, 14, 13}, {14, 14, 14}, {14, 14, 16}, {14, 14, 25}, {14, 14, 26}, {14, 14, 29}, {14, 14, 32}, {14, 16, 14}, {14, 16, 16}, {14, 16, 29}, {14, 25, 13}, {14, 25, 14}, {14, 25, 25}, {14, 25, 26}, {14, 25, 32}, {14, 26, 13}, {14, 26, 14}, {14, 26, 25}, {14, 26, 26}, {14, 26, 32}, {14, 29, 14}, {14, 29, 16}, {14, 29, 29}, {14, 29, 32}, {14, 32, 13}, {14, 32, 14}, {14, 32, 25}, {14, 32, 26}, {14, 32, 29}, {14, 32, 32}, {15, 4, 4}, {15, 4, 10}, {15, 4, 15}, {15, 10, 4}, {15, 10, 10}, {15, 10, 15}, {15, 15, 4}, {15, 15, 10}, {15, 15, 15}, {16, 5, 5}, {16, 5, 13}, {16, 5, 16}, {16, 5, 32}, {16, 12, 12}, {16, 12, 16}, {16, 12, 32}, {16, 13, 5}, {16, 13, 13}, {16, 13, 16}, {16, 13, 32}, {16, 14, 14}, {16, 14, 16}, {16, 14, 29}, {16, 16, 5}, {16, 16, 12}, {16, 16, 13}, {16, 16, 14}, {16, 16, 16}, {16, 16, 29}, {16, 16, 32}, {16, 29, 14}, {16, 29, 16}, {16, 29, 29}, {16, 32, 5}, {16, 32, 12}, {16, 32, 13}, {16, 32, 16}, {16, 32, 32}, {17, 17, 17}, {18, 18, 18}, {19, 19, 19}, {20, 11, 11}, {20, 11, 12}, {20, 11, 20}, {20, 11, 25}, {20, 11, 32}, {20, 12, 11}, {20, 12, 12}, {20, 12, 20}, {20, 12, 25}, {20, 12, 32}, {20, 20, 11}, {20, 20, 12}, {20, 20, 20}, {20, 20, 25}, {20, 20, 32}, {20, 25, 11}, {20, 25, 12}, {20, 25, 20}, {20, 25, 25}, {20, 25, 32}, {20, 32, 11}, {20, 32, 12}, {20, 32, 20}, {20, 32, 25}, {20, 32, 32}, {21, 21, 21}, {22, 9, 9}, {22, 9, 22}, {22, 9, 32}, {22, 22, 9}, {22, 22, 22}, {22, 22, 32}, {22, 32, 9}, {22, 32, 22}, {22, 32, 32}, {23, 23, 23}, {24, 5, 5}, {24, 5, 13}, {24, 5, 24}, {24, 5, 26}, {24, 5, 32}, {24, 13, 5}, {24, 13, 13}, {24, 13, 24}, {24, 13, 26}, {24, 13, 32}, {24, 24, 5}, {24, 24, 13}, {24, 24, 24}, {24, 24, 26}, {24, 24, 32}, {24, 26, 5}, {24, 26, 13}, {24, 26, 24}, {24, 26, 26}, {24, 26, 32}, {24, 32, 5}, {24, 32, 13}, {24, 32, 24}, {24, 32, 26}, {24, 32, 32}, {25, 4, 4}, {25, 4, 5}, {25, 4, 7}, {25, 4, 9}, {25, 4, 13}, {25, 4, 25}, {25, 4, 26}, {25, 4, 28}, {25, 4, 32}, {25, 4, 45}, {25, 5, 4}, {25, 5, 5}, {25, 5, 7}, {25, 5, 9}, {25, 5, 13}, {25, 5, 25}, {25, 5, 26}, {25, 5, 28}, {25, 5, 32}, {25, 5, 45}, {25, 7, 4}, {25, 7, 5}, {25, 7, 7}, {25, 7, 9}, {25, 7, 13}, {25, 7, 25}, {25, 7, 26}, {25, 7, 28}, {25, 7, 32}, {25, 7, 45}, {25, 9, 4}, {25, 9, 5}, {25, 9, 7}, {25, 9, 9}, {25, 9, 13}, {25, 9, 25}, {25, 9, 26}, {25, 9, 28}, {25, 9, 32}, {25, 9, 45}, {25, 11, 11}, {25, 11, 12}, {25, 11, 20}, {25, 11, 25}, {25, 11, 32}, {25, 12, 11}, {25, 12, 12}, {25, 12, 20}, {25, 12, 25}, {25, 12, 32}, {25, 13, 4}, {25, 13, 5}, {25, 13, 7}, {25, 13, 9}, {25, 13, 13}, {25, 13, 14}, {25, 13, 25}, {25, 13, 26}, {25, 13, 28}, {25, 13, 32}, {25, 13, 45}, {25, 14, 13}, {25, 14, 14}, {25, 14, 25}, {25, 14, 26}, {25, 14, 32}, {25, 20, 11}, {25, 20, 12}, {25, 20, 20}, {25, 20, 25}, {25, 20, 32}, {25, 25, 4}, {25, 25, 5}, {25, 25, 7}, {25, 25, 9}, {25, 25, 11}, {25, 25, 12}, {25, 25, 13}, {25, 25, 14}, {25, 25, 20}, {25, 25, 25}, {25, 25, 26}, {25, 25, 28}, {25, 25, 32}, {25, 25, 45}, {25, 26, 4}, {25, 26, 5}, {25, 26, 7}, {25, 26, 9}, {25, 26, 13}, {25, 26, 14}, {25, 26, 25}, {25, 26, 26}, {25, 26, 28}, {25, 26, 32}, {25, 26, 45}, {25, 28, 4}, {25, 28, 5}, {25, 28, 7}, {25, 28, 9}, {25, 28, 13}, {25, 28, 25}, {25, 28, 26}, {25, 28, 28}, {25, 28, 32}, {25, 28, 45}, {25, 32, 4}, {25, 32, 5}, {25, 32, 7}, {25, 32, 9}, {25, 32, 11}, {25, 32, 12}, {25, 32, 13}, {25, 32, 14}, {25, 32, 20}, {25, 32, 25}, {25, 32, 26}, {25, 32, 28}, {25, 32, 32}, {25, 32, 45}, {25, 45, 4}, {25, 45, 5}, {25, 45, 7}, {25, 45, 9}, {25, 45, 13}, {25, 45, 25}, {25, 45, 26}, {25, 45, 28}, {25, 45, 32}, {25, 45, 45}, {26, 4, 4}, {26, 4, 5}, {26, 4, 7}, {26, 4, 9}, {26, 4, 13}, {26, 4, 25}, {26, 4, 26}, {26, 4, 28}, {26, 4, 32}, {26, 4, 45}, {26, 5, 4}, {26, 5, 5}, {26, 5, 7}, {26, 5, 9}, {26, 5, 12}, {26, 5, 13}, {26, 5, 24}, {26, 5, 25}, {26, 5, 26}, {26, 5, 28}, {26, 5, 32}, {26, 5, 45}, {26, 7, 4}, {26, 7, 5}, {26, 7, 7}, {26, 7, 9}, {26, 7, 13}, {26, 7, 25}, {26, 7, 26}, {26, 7, 28}, {26, 7, 32}, {26, 7, 45}, {26, 9, 4}, {26, 9, 5}, {26, 9, 7}, {26, 9, 9}, {26, 9, 13}, {26, 9, 25}, {26, 9, 26}, {26, 9, 28}, {26, 9, 32}, {26, 9, 45}, {26, 12, 5}, {26, 12, 12}, {26, 12, 13}, {26, 12, 26}, {26, 12, 32}, {26, 13, 4}, {26, 13, 5}, {26, 13, 7}, {26, 13, 9}, {26, 13, 12}, {26, 13, 13}, {26, 13, 14}, {26, 13, 24}, {26, 13, 25}, {26, 13, 26}, {26, 13, 28}, {26, 13, 32}, {26, 13, 45}, {26, 14, 13}, {26, 14, 14}, {26, 14, 25}, {26, 14, 26}, {26, 14, 32}, {26, 24, 5}, {26, 24, 13}, {26, 24, 24}, {26, 24, 26}, {26, 24, 32}, {26, 25, 4}, {26, 25, 5}, {26, 25, 7}, {26, 25, 9}, {26, 25, 13}, {26, 25, 14}, {26, 25, 25}, {26, 25, 26}, {26, 25, 28}, {26, 25, 32}, {26, 25, 45}, {26, 26, 4}, {26, 26, 5}, {26, 26, 7}, {26, 26, 9}, {26, 26, 12}, {26, 26, 13}, {26, 26, 14}, {26, 26, 24}, {26, 26, 25}, {26, 26, 26}, {26, 26, 28}, {26, 26, 32}, {26, 26, 45}, {26, 28, 4}, {26, 28, 5}, {26, 28, 7}, {26, 28, 9}, {26, 28, 13}, {26, 28, 25}, {26, 28, 26}, {26, 28, 28}, {26, 28, 32}, {26, 28, 45}, {26, 32, 4}, {26, 32, 5}, {26, 32, 7}, {26, 32, 9}, {26, 32, 12}, {26, 32, 13}, {26, 32, 14}, {26, 32, 24}, {26, 32, 25}, {26, 32, 26}, {26, 32, 28}, {26, 32, 32}, {26, 32, 45}, {26, 45, 4}, {26, 45, 5}, {26, 45, 7}, {26, 45, 9}, {26, 45, 13}, {26, 45, 25}, {26, 45, 26}, {26, 45, 28}, {26, 45, 32}, {26, 45, 45}, {27, 27, 27}, {28, 4, 4}, {28, 4, 5}, {28, 4, 7}, {28, 4, 9}, {28, 4, 13}, {28, 4, 25}, {28, 4, 26}, {28, 4, 28}, {28, 4, 32}, {28, 4, 45}, {28, 5, 4}, {28, 5, 5}, {28, 5, 7}, {28, 5, 9}, {28, 5, 13}, {28, 5, 25}, {28, 5, 26}, {28, 5, 28}, {28, 5, 32}, {28, 5, 45}, {28, 7, 4}, {28, 7, 5}, {28, 7, 7}, {28, 7, 9}, {28, 7, 13}, {28, 7, 25}, {28, 7, 26}, {28, 7, 28}, {28, 7, 32}, {28, 7, 45}, {28, 9, 4}, {28, 9, 5}, {28, 9, 7}, {28, 9, 9}, {28, 9, 13}, {28, 9, 25}, {28, 9, 26}, {28, 9, 28}, {28, 9, 32}, {28, 9, 45}, {28, 13, 4}, {28, 13, 5}, {28, 13, 7}, {28, 13, 9}, {28, 13, 13}, {28, 13, 25}, {28, 13, 26}, {28, 13, 28}, {28, 13, 32}, {28, 13, 45}, {28, 25, 4}, {28, 25, 5}, {28, 25, 7}, {28, 25, 9}, {28, 25, 13}, {28, 25, 25}, {28, 25, 26}, {28, 25, 28}, {28, 25, 32}, {28, 25, 45}, {28, 26, 4}, {28, 26, 5}, {28, 26, 7}, {28, 26, 9}, {28, 26, 13}, {28, 26, 25}, {28, 26, 26}, {28, 26, 28}, {28, 26, 32}, {28, 26, 45}, {28, 28, 4}, {28, 28, 5}, {28, 28, 7}, {28, 28, 9}, {28, 28, 13}, {28, 28, 25}, {28, 28, 26}, {28, 28, 28}, {28, 28, 32}, {28, 28, 45}, {28, 32, 4}, {28, 32, 5}, {28, 32, 7}, {28, 32, 9}, {28, 32, 13}, {28, 32, 25}, {28, 32, 26}, {28, 32, 28}, {28, 32, 32}, {28, 32, 45}, {28, 45, 4}, {28, 45, 5}, {28, 45, 7}, {28, 45, 9}, {28, 45, 13}, {28, 45, 25}, {28, 45, 26}, {28, 45, 28}, {28, 45, 32}, {28, 45, 45}, {29, 14, 14}, {29, 14, 16}, {29, 14, 29}, {29, 14, 32}, {29, 16, 14}, {29, 16, 16}, {29, 16, 29}, {29, 29, 14}, {29, 29, 16}, {29, 29, 29}, {29, 29, 32}, {29, 32, 14}, {29, 32, 29}, {29, 32, 32}, {30, 30, 30}, {31, 31, 31}, {32, 4, 4}, {32, 4, 5}, {32, 4, 7}, {32, 4, 9}, {32, 4, 13}, {32, 4, 25}, {32, 4, 26}, {32, 4, 28}, {32, 4, 32}, {32, 4, 45}, {32, 5, 4}, {32, 5, 5}, {32, 5, 7}, {32, 5, 9}, {32, 5, 12}, {32, 5, 13}, {32, 5, 16}, {32, 5, 24}, {32, 5, 25}, {32, 5, 26}, {32, 5, 28}, {32, 5, 32}, {32, 5, 45}, {32, 7, 4}, {32, 7, 5}, {32, 7, 7}, {32, 7, 9}, {32, 7, 13}, {32, 7, 25}, {32, 7, 26}, {32, 7, 28}, {32, 7, 32}, {32, 7, 45}, {32, 9, 4}, {32, 9, 5}, {32, 9, 7}, {32, 9, 9}, {32, 9, 10}, {32, 9, 12}, {32, 9, 13}, {32, 9, 22}, {32, 9, 25}, {32, 9, 26}, {32, 9, 28}, {32, 9, 32}, {32, 9, 45}, {32, 10, 9}, {32, 10, 10}, {32, 10, 12}, {32, 10, 32}, {32, 11, 11}, {32, 11, 12}, {32, 11, 20}, {32, 11, 25}, {32, 11, 32}, {32, 12, 5}, {32, 12, 9}, {32, 12, 10}, {32, 12, 11}, {32, 12, 12}, {32, 12, 13}, {32, 12, 16}, {32, 12, 20}, {32, 12, 25}, {32, 12, 26}, {32, 12, 32}, {32, 13, 4}, {32, 13, 5}, {32, 13, 7}, {32, 13, 9}, {32, 13, 12}, {32, 13, 13}, {32, 13, 14}, {32, 13, 16}, {32, 13, 24}, {32, 13, 25}, {32, 13, 26}, {32, 13, 28}, {32, 13, 32}, {32, 13, 45}, {32, 14, 13}, {32, 14, 14}, {32, 14, 25}, {32, 14, 26}, {32, 14, 29}, {32, 14, 32}, {32, 16, 5}, {32, 16, 12}, {32, 16, 13}, {32, 16, 16}, {32, 16, 32}, {32, 20, 11}, {32, 20, 12}, {32, 20, 20}, {32, 20, 25}, {32, 20, 32}, {32, 22, 9}, {32, 22, 22}, {32, 22, 32}, {32, 24, 5}, {32, 24, 13}, {32, 24, 24}, {32, 24, 26}, {32, 24, 32}, {32, 25, 4}, {32, 25, 5}, {32, 25, 7}, {32, 25, 9}, {32, 25, 11}, {32, 25, 12}, {32, 25, 13}, {32, 25, 14}, {32, 25, 20}, {32, 25, 25}, {32, 25, 26}, {32, 25, 28}, {32, 25, 32}, {32, 25, 45}, {32, 26, 4}, {32, 26, 5}, {32, 26, 7}, {32, 26, 9}, {32, 26, 12}, {32, 26, 13}, {32, 26, 14}, {32, 26, 24}, {32, 26, 25}, {32, 26, 26}, {32, 26, 28}, {32, 26, 32}, {32, 26, 45}, {32, 28, 4}, {32, 28, 5}, {32, 28, 7}, {32, 28, 9}, {32, 28, 13}, {32, 28, 25}, {32, 28, 26}, {32, 28, 28}, {32, 28, 32}, {32, 28, 45}, {32, 29, 14}, {32, 29, 29}, {32, 29, 32}, {32, 32, 4}, {32, 32, 5}, {32, 32, 7}, {32, 32, 9}, {32, 32, 10}, {32, 32, 11}, {32, 32, 12}, {32, 32, 13}, {32, 32, 14}, {32, 32, 16}, {32, 32, 20}, {32, 32, 22}, {32, 32, 24}, {32, 32, 25}, {32, 32, 26}, {32, 32, 28}, {32, 32, 29}, {32, 32, 32}, {32, 32, 45}, {32, 45, 4}, {32, 45, 5}, {32, 45, 7}, {32, 45, 9}, {32, 45, 13}, {32, 45, 25}, {32, 45, 26}, {32, 45, 28}, {32, 45, 32}, {32, 45, 45}, {45, 4, 4}, {45, 4, 5}, {45, 4, 7}, {45, 4, 9}, {45, 4, 13}, {45, 4, 25}, {45, 4, 26}, {45, 4, 28}, {45, 4, 32}, {45, 4, 45}, {45, 5, 4}, {45, 5, 5}, {45, 5, 7}, {45, 5, 9}, {45, 5, 13}, {45, 5, 25}, {45, 5, 26}, {45, 5, 28}, {45, 5, 32}, {45, 5, 45}, {45, 7, 4}, {45, 7, 5}, {45, 7, 7}, {45, 7, 9}, {45, 7, 13}, {45, 7, 25}, {45, 7, 26}, {45, 7, 28}, {45, 7, 32}, {45, 7, 45}, {45, 9, 4}, {45, 9, 5}, {45, 9, 7}, {45, 9, 9}, {45, 9, 13}, {45, 9, 25}, {45, 9, 26}, {45, 9, 28}, {45, 9, 32}, {45, 9, 45}, {45, 13, 4}, {45, 13, 5}, {45, 13, 7}, {45, 13, 9}, {45, 13, 13}, {45, 13, 25}, {45, 13, 26}, {45, 13, 28}, {45, 13, 32}, {45, 13, 45}, {45, 25, 4}, {45, 25, 5}, {45, 25, 7}, {45, 25, 9}, {45, 25, 13}, {45, 25, 25}, {45, 25, 26}, {45, 25, 28}, {45, 25, 32}, {45, 25, 45}, {45, 26, 4}, {45, 26, 5}, {45, 26, 7}, {45, 26, 9}, {45, 26, 13}, {45, 26, 25}, {45, 26, 26}, {45, 26, 28}, {45, 26, 32}, {45, 26, 45}, {45, 28, 4}, {45, 28, 5}, {45, 28, 7}, {45, 28, 9}, {45, 28, 13}, {45, 28, 25}, {45, 28, 26}, {45, 28, 28}, {45, 28, 32}, {45, 28, 45}, {45, 32, 4}, {45, 32, 5}, {45, 32, 7}, {45, 32, 9}, {45, 32, 13}, {45, 32, 25}, {45, 32, 26}, {45, 32, 28}, {45, 32, 32}, {45, 32, 45}, {45, 45, 4}, {45, 45, 5}, {45, 45, 7}, {45, 45, 9}, {45, 45, 13}, {45, 45, 25}, {45, 45, 26}, {45, 45, 28}, {45, 45, 32}, {45, 45, 45}, {55, 16, 16}, {55, 16, 29}, {55, 16, 55}, {55, 29, 16}, {55, 29, 29}, {55, 29, 32}, {55, 29, 55}, {55, 32, 29}, {55, 32, 32}, {55, 32, 55}, {55, 55, 16}, {55, 55, 29}, {55, 55, 32}, {55, 55, 55}, {64, 64, 64}, {78, 78, 78}, }; } else if (argv[1] == std::string("predicted")) { libsmm_acc_triplets = { { 4, 5, 41}, { 4, 6, 21}, { 4, 8, 45}, { 4, 12, 43}, { 4, 13, 40}, { 4, 14, 28}, { 4, 15, 18}, { 4, 15, 43}, { 4, 20, 39}, { 4, 21, 42}, { 4, 23, 32}, { 4, 26, 37}, { 4, 26, 41}, { 4, 28, 6}, { 4, 35, 24}, { 4, 36, 31}, { 4, 38, 18}, { 4, 40, 11}, { 4, 40, 40}, { 4, 42, 36}, { 4, 43, 33}, { 4, 43, 34}, { 5, 4, 33}, { 5, 5, 17}, { 5, 6, 12}, { 5, 6, 22}, { 5, 6, 45}, { 5, 10, 24}, { 5, 11, 6}, { 5, 13, 44}, { 5, 14, 18}, { 5, 14, 38}, { 5, 21, 35}, { 5, 21, 45}, { 5, 23, 35}, { 5, 25, 43}, { 5, 26, 42}, { 5, 27, 19}, { 5, 28, 18}, { 5, 30, 35}, { 5, 37, 11}, { 5, 37, 38}, { 5, 43, 33}, { 6, 4, 38}, { 6, 9, 23}, { 6, 9, 38}, { 6, 10, 13}, { 6, 10, 16}, { 6, 11, 35}, { 6, 12, 42}, { 6, 13, 18}, { 6, 13, 40}, { 6, 16, 22}, { 6, 16, 23}, { 6, 20, 29}, { 6, 20, 43}, { 6, 23, 43}, { 6, 27, 37}, { 6, 28, 35}, { 6, 29, 18}, { 6, 31, 16}, { 6, 33, 35}, { 6, 34, 10}, { 6, 38, 28}, { 6, 41, 41}, { 6, 45, 26}, { 7, 4, 19}, { 7, 11, 25}, { 7, 15, 32}, { 7, 17, 18}, { 7, 20, 33}, { 7, 21, 43}, { 7, 24, 43}, { 7, 25, 17}, { 7, 26, 10}, { 7, 27, 26}, { 7, 30, 5}, { 7, 30, 21}, { 7, 31, 17}, { 7, 33, 41}, { 7, 34, 32}, { 7, 35, 36}, { 7, 40, 26}, { 7, 40, 45}, { 8, 5, 12}, { 8, 8, 17}, { 8, 11, 10}, { 8, 11, 39}, { 8, 13, 31}, { 8, 13, 35}, { 8, 14, 13}, { 8, 16, 8}, { 8, 22, 15}, { 8, 22, 27}, { 8, 24, 4}, { 8, 24, 24}, { 8, 26, 26}, { 8, 27, 21}, { 8, 28, 9}, { 8, 28, 34}, { 8, 29, 19}, { 8, 34, 16}, { 8, 35, 17}, { 8, 36, 18}, { 8, 36, 25}, { 8, 36, 45}, { 8, 38, 31}, { 8, 40, 43}, { 9, 6, 11}, { 9, 7, 37}, { 9, 10, 33}, { 9, 10, 35}, { 9, 13, 14}, { 9, 16, 33}, { 9, 16, 41}, { 9, 17, 45}, { 9, 18, 22}, { 9, 19, 19}, { 9, 26, 30}, { 9, 30, 29}, { 9, 31, 4}, { 9, 32, 43}, { 9, 33, 39}, { 9, 34, 39}, { 9, 35, 40}, { 9, 36, 11}, { 9, 36, 43}, { 9, 38, 45}, { 9, 39, 42}, { 9, 41, 5}, { 9, 41, 42}, { 9, 42, 33}, { 9, 43, 18}, { 9, 43, 36}, {10, 5, 15}, {10, 5, 29}, {10, 5, 45}, {10, 6, 42}, {10, 8, 26}, {10, 8, 39}, {10, 10, 27}, {10, 12, 35}, {10, 13, 17}, {10, 14, 29}, {10, 15, 36}, {10, 21, 45}, {10, 22, 38}, {10, 24, 39}, {10, 26, 32}, {10, 32, 35}, {10, 33, 19}, {10, 37, 18}, {10, 38, 4}, {10, 40, 16}, {10, 40, 32}, {10, 41, 23}, {10, 42, 38}, {11, 8, 11}, {11, 8, 17}, {11, 10, 34}, {11, 11, 37}, {11, 12, 18}, {11, 16, 16}, {11, 17, 6}, {11, 18, 18}, {11, 18, 36}, {11, 22, 11}, {11, 23, 15}, {11, 23, 41}, {11, 27, 9}, {11, 29, 25}, {11, 29, 37}, {11, 30, 15}, {11, 41, 31}, {11, 42, 29}, {11, 43, 13}, {11, 45, 13}, {11, 45, 33}, {12, 5, 11}, {12, 5, 35}, {12, 6, 45}, {12, 10, 29}, {12, 12, 37}, {12, 13, 11}, {12, 13, 15}, {12, 17, 8}, {12, 17, 34}, {12, 18, 26}, {12, 21, 43}, {12, 22, 18}, {12, 22, 41}, {12, 24, 8}, {12, 27, 7}, {12, 27, 43}, {12, 27, 45}, {12, 29, 10}, {12, 33, 26}, {12, 38, 5}, {12, 38, 24}, {12, 40, 23}, {12, 41, 9}, {12, 41, 29}, {12, 44, 20}, {13, 4, 41}, {13, 5, 19}, {13, 5, 37}, {13, 5, 43}, {13, 10, 43}, {13, 11, 19}, {13, 12, 33}, {13, 14, 24}, {13, 14, 33}, {13, 15, 43}, {13, 16, 7}, {13, 17, 17}, {13, 21, 17}, {13, 22, 44}, {13, 24, 11}, {13, 25, 8}, {13, 32, 33}, {13, 32, 37}, {13, 37, 31}, {13, 37, 33}, {13, 38, 5}, {13, 38, 29}, {13, 38, 43}, {13, 39, 17}, {13, 42, 19}, {14, 4, 16}, {14, 4, 38}, {14, 11, 45}, {14, 12, 6}, {14, 12, 36}, {14, 12, 38}, {14, 14, 6}, {14, 14, 7}, {14, 14, 40}, {14, 16, 35}, {14, 20, 14}, {14, 21, 7}, {14, 21, 34}, {14, 22, 8}, {14, 22, 33}, {14, 23, 32}, {14, 24, 12}, {14, 29, 7}, {14, 29, 35}, {14, 30, 15}, {14, 33, 6}, {14, 33, 35}, {14, 35, 33}, {14, 39, 40}, {14, 42, 12}, {15, 9, 42}, {15, 9, 43}, {15, 12, 42}, {15, 15, 28}, {15, 21, 7}, {15, 21, 14}, {15, 28, 31}, {15, 32, 4}, {15, 32, 26}, {15, 33, 28}, {15, 34, 7}, {15, 34, 11}, {15, 36, 12}, {15, 38, 34}, {15, 39, 38}, {15, 40, 23}, {15, 41, 11}, {15, 43, 34}, {16, 5, 39}, {16, 7, 26}, {16, 10, 34}, {16, 10, 39}, {16, 11, 13}, {16, 11, 45}, {16, 12, 5}, {16, 12, 37}, {16, 13, 28}, {16, 13, 37}, {16, 14, 42}, {16, 15, 29}, {16, 16, 11}, {16, 16, 26}, {16, 19, 29}, {16, 19, 39}, {16, 21, 12}, {16, 21, 36}, {16, 22, 15}, {16, 25, 8}, {16, 28, 37}, {16, 28, 39}, {16, 29, 42}, {16, 32, 26}, {16, 32, 45}, {16, 34, 38}, {16, 37, 32}, {16, 41, 43}, {16, 43, 28}, {16, 43, 40}, {16, 44, 45}, {16, 45, 24}, {17, 7, 6}, {17, 9, 22}, {17, 15, 10}, {17, 21, 35}, {17, 23, 26}, {17, 24, 5}, {17, 24, 26}, {17, 28, 29}, {17, 28, 39}, {17, 29, 17}, {17, 29, 36}, {17, 30, 34}, {17, 33, 9}, {17, 35, 7}, {17, 35, 30}, {17, 36, 4}, {17, 37, 34}, {17, 39, 32}, {17, 41, 7}, {17, 42, 36}, {17, 42, 38}, {17, 44, 10}, {18, 5, 43}, {18, 7, 8}, {18, 7, 43}, {18, 9, 45}, {18, 15, 32}, {18, 16, 23}, {18, 17, 25}, {18, 19, 31}, {18, 19, 37}, {18, 19, 39}, {18, 21, 17}, {18, 21, 27}, {18, 26, 21}, {18, 27, 11}, {18, 28, 30}, {18, 30, 13}, {18, 30, 38}, {18, 32, 13}, {18, 34, 6}, {18, 34, 12}, {18, 34, 37}, {18, 35, 36}, {18, 36, 12}, {18, 38, 19}, {18, 38, 25}, {18, 41, 33}, {18, 41, 37}, {18, 42, 41}, {18, 44, 21}, {18, 45, 35}, {19, 6, 16}, {19, 6, 19}, {19, 7, 10}, {19, 7, 34}, {19, 8, 23}, {19, 11, 9}, {19, 15, 44}, {19, 19, 9}, {19, 20, 36}, {19, 22, 7}, {19, 22, 14}, {19, 22, 31}, {19, 22, 39}, {19, 30, 24}, {19, 31, 25}, {19, 32, 23}, {19, 33, 28}, {19, 36, 34}, {19, 37, 13}, {19, 38, 45}, {19, 39, 16}, {19, 39, 24}, {19, 42, 43}, {19, 44, 34}, {19, 45, 17}, {20, 4, 9}, {20, 4, 28}, {20, 7, 14}, {20, 8, 9}, {20, 8, 35}, {20, 12, 33}, {20, 15, 22}, {20, 16, 12}, {20, 16, 41}, {20, 18, 6}, {20, 22, 7}, {20, 22, 38}, {20, 24, 23}, {20, 28, 4}, {20, 28, 10}, {20, 31, 11}, {20, 31, 29}, {20, 33, 4}, {20, 34, 16}, {20, 34, 39}, {20, 35, 20}, {20, 36, 42}, {20, 38, 14}, {20, 39, 23}, {20, 39, 42}, {21, 5, 12}, {21, 7, 13}, {21, 9, 18}, {21, 11, 9}, {21, 11, 24}, {21, 13, 39}, {21, 14, 28}, {21, 20, 4}, {21, 23, 31}, {21, 26, 11}, {21, 26, 39}, {21, 28, 39}, {21, 31, 9}, {21, 33, 35}, {21, 35, 9}, {21, 36, 44}, {21, 38, 10}, {21, 39, 15}, {21, 40, 16}, {21, 40, 29}, {21, 41, 14}, {21, 44, 24}, {22, 4, 13}, {22, 4, 31}, {22, 4, 38}, {22, 5, 11}, {22, 15, 24}, {22, 16, 37}, {22, 23, 4}, {22, 24, 19}, {22, 25, 25}, {22, 26, 8}, {22, 26, 34}, {22, 28, 26}, {22, 29, 23}, {22, 31, 15}, {22, 33, 36}, {22, 35, 12}, {22, 35, 20}, {22, 35, 39}, {22, 37, 8}, {22, 38, 14}, {22, 40, 35}, {22, 40, 44}, {22, 43, 11}, {22, 43, 17}, {22, 44, 7}, {22, 44, 15}, {22, 45, 13}, {22, 45, 34}, {23, 4, 30}, {23, 4, 36}, {23, 6, 31}, {23, 11, 10}, {23, 13, 15}, {23, 13, 31}, {23, 14, 17}, {23, 17, 41}, {23, 19, 15}, {23, 20, 36}, {23, 21, 13}, {23, 22, 21}, {23, 23, 44}, {23, 24, 43}, {23, 25, 23}, {23, 28, 17}, {23, 29, 6}, {23, 30, 45}, {23, 34, 22}, {23, 35, 36}, {23, 37, 11}, {23, 37, 37}, {23, 38, 28}, {23, 40, 45}, {23, 41, 37}, {23, 42, 9}, {23, 42, 38}, {23, 43, 32}, {23, 45, 24}, {24, 5, 30}, {24, 6, 4}, {24, 6, 22}, {24, 7, 8}, {24, 7, 13}, {24, 8, 20}, {24, 14, 24}, {24, 14, 25}, {24, 15, 19}, {24, 16, 11}, {24, 17, 43}, {24, 25, 30}, {24, 26, 12}, {24, 28, 24}, {24, 32, 6}, {24, 33, 27}, {24, 34, 11}, {24, 36, 19}, {24, 38, 8}, {24, 40, 23}, {24, 43, 10}, {24, 43, 15}, {24, 45, 20}, {24, 45, 36}, {25, 8, 32}, {25, 15, 30}, {25, 18, 13}, {25, 18, 15}, {25, 18, 35}, {25, 18, 36}, {25, 27, 37}, {25, 30, 23}, {25, 30, 28}, {25, 31, 30}, {25, 31, 44}, {25, 32, 44}, {25, 33, 18}, {25, 33, 42}, {25, 34, 35}, {25, 36, 31}, {25, 37, 8}, {25, 42, 38}, {25, 43, 32}, {25, 43, 39}, {25, 44, 26}, {25, 44, 39}, {26, 6, 14}, {26, 7, 31}, {26, 9, 18}, {26, 10, 45}, {26, 11, 15}, {26, 11, 24}, {26, 12, 25}, {26, 17, 15}, {26, 19, 9}, {26, 20, 19}, {26, 21, 21}, {26, 21, 30}, {26, 23, 12}, {26, 24, 15}, {26, 26, 33}, {26, 29, 24}, {26, 32, 10}, {26, 36, 8}, {26, 39, 31}, {26, 39, 42}, {26, 40, 14}, {26, 44, 21}, {26, 44, 45}, {26, 45, 21}, {27, 9, 29}, {27, 11, 9}, {27, 14, 41}, {27, 15, 22}, {27, 17, 18}, {27, 25, 23}, {27, 26, 23}, {27, 27, 6}, {27, 31, 32}, {27, 34, 32}, {27, 36, 11}, {27, 37, 12}, {27, 37, 35}, {27, 38, 18}, {27, 40, 18}, {27, 40, 43}, {27, 42, 41}, {27, 44, 7}, {28, 7, 14}, {28, 9, 36}, {28, 10, 14}, {28, 10, 40}, {28, 12, 4}, {28, 13, 27}, {28, 18, 10}, {28, 18, 37}, {28, 20, 13}, {28, 26, 17}, {28, 27, 9}, {28, 27, 17}, {28, 28, 15}, {28, 30, 14}, {28, 30, 19}, {28, 30, 36}, {28, 32, 44}, {28, 34, 14}, {28, 34, 20}, {28, 36, 17}, {28, 37, 16}, {28, 42, 24}, {29, 4, 16}, {29, 6, 32}, {29, 6, 35}, {29, 6, 39}, {29, 9, 6}, {29, 9, 36}, {29, 10, 38}, {29, 13, 10}, {29, 14, 21}, {29, 18, 14}, {29, 18, 32}, {29, 20, 16}, {29, 25, 26}, {29, 26, 21}, {29, 26, 28}, {29, 29, 43}, {29, 31, 34}, {29, 33, 31}, {29, 35, 10}, {29, 35, 43}, {29, 38, 16}, {29, 42, 16}, {29, 43, 17}, {30, 5, 44}, {30, 9, 30}, {30, 10, 7}, {30, 16, 7}, {30, 19, 4}, {30, 19, 32}, {30, 20, 8}, {30, 20, 25}, {30, 21, 39}, {30, 26, 26}, {30, 26, 42}, {30, 29, 4}, {30, 33, 15}, {30, 33, 39}, {30, 34, 7}, {30, 36, 45}, {30, 41, 44}, {30, 42, 5}, {30, 42, 20}, {30, 42, 21}, {30, 42, 24}, {30, 42, 41}, {31, 4, 44}, {31, 7, 37}, {31, 8, 17}, {31, 9, 26}, {31, 10, 12}, {31, 11, 7}, {31, 11, 8}, {31, 11, 38}, {31, 14, 23}, {31, 16, 39}, {31, 17, 6}, {31, 18, 30}, {31, 18, 36}, {31, 21, 36}, {31, 21, 45}, {31, 25, 43}, {31, 27, 22}, {31, 28, 41}, {31, 29, 9}, {31, 30, 39}, {31, 34, 28}, {31, 34, 37}, {31, 37, 27}, {31, 40, 31}, {31, 42, 20}, {31, 43, 4}, {31, 45, 5}, {32, 5, 10}, {32, 11, 40}, {32, 15, 37}, {32, 18, 32}, {32, 19, 33}, {32, 19, 45}, {32, 22, 17}, {32, 23, 32}, {32, 23, 43}, {32, 30, 16}, {32, 34, 43}, {32, 36, 27}, {32, 37, 32}, {32, 38, 10}, {32, 39, 18}, {32, 44, 13}, {32, 44, 18}, {32, 45, 42}, {33, 6, 45}, {33, 10, 39}, {33, 11, 23}, {33, 14, 24}, {33, 15, 21}, {33, 17, 23}, {33, 18, 42}, {33, 19, 41}, {33, 20, 24}, {33, 24, 4}, {33, 25, 10}, {33, 27, 21}, {33, 27, 33}, {33, 29, 25}, {33, 29, 26}, {33, 29, 37}, {33, 35, 43}, {33, 37, 41}, {33, 38, 22}, {33, 39, 35}, {33, 40, 11}, {33, 42, 32}, {33, 43, 16}, {33, 44, 24}, {34, 4, 4}, {34, 4, 13}, {34, 5, 27}, {34, 6, 34}, {34, 7, 20}, {34, 8, 32}, {34, 11, 8}, {34, 17, 36}, {34, 20, 30}, {34, 21, 9}, {34, 21, 39}, {34, 21, 43}, {34, 22, 6}, {34, 24, 12}, {34, 25, 19}, {34, 25, 26}, {34, 26, 30}, {34, 26, 39}, {34, 27, 27}, {34, 29, 20}, {34, 29, 25}, {34, 31, 33}, {34, 32, 34}, {34, 37, 42}, {34, 40, 18}, {34, 40, 33}, {34, 43, 10}, {34, 43, 15}, {34, 43, 19}, {34, 44, 44}, {35, 6, 7}, {35, 7, 12}, {35, 8, 7}, {35, 8, 45}, {35, 9, 6}, {35, 11, 24}, {35, 12, 33}, {35, 16, 9}, {35, 18, 41}, {35, 20, 15}, {35, 21, 18}, {35, 21, 21}, {35, 26, 7}, {35, 28, 33}, {35, 28, 44}, {35, 29, 29}, {35, 29, 32}, {35, 29, 34}, {35, 30, 6}, {35, 35, 42}, {35, 37, 18}, {35, 38, 35}, {35, 39, 32}, {35, 40, 30}, {35, 42, 42}, {35, 44, 7}, {35, 45, 9}, {35, 45, 16}, {36, 10, 32}, {36, 16, 35}, {36, 17, 33}, {36, 19, 9}, {36, 20, 38}, {36, 29, 19}, {36, 29, 21}, {36, 29, 40}, {36, 34, 21}, {36, 35, 44}, {36, 37, 25}, {36, 38, 42}, {36, 40, 18}, {36, 41, 18}, {36, 41, 32}, {36, 42, 15}, {36, 43, 4}, {37, 5, 36}, {37, 11, 36}, {37, 15, 24}, {37, 16, 30}, {37, 17, 12}, {37, 20, 38}, {37, 23, 4}, {37, 23, 43}, {37, 25, 21}, {37, 26, 15}, {37, 27, 41}, {37, 27, 43}, {37, 28, 9}, {37, 33, 44}, {37, 35, 25}, {37, 37, 32}, {37, 45, 16}, {37, 45, 38}, {38, 5, 44}, {38, 8, 31}, {38, 9, 44}, {38, 10, 29}, {38, 11, 45}, {38, 15, 22}, {38, 17, 36}, {38, 18, 34}, {38, 20, 7}, {38, 20, 21}, {38, 21, 10}, {38, 22, 38}, {38, 25, 29}, {38, 25, 30}, {38, 26, 23}, {38, 29, 15}, {38, 30, 15}, {38, 34, 4}, {38, 34, 12}, {38, 34, 25}, {38, 36, 12}, {38, 37, 19}, {38, 37, 23}, {38, 40, 36}, {38, 41, 41}, {38, 42, 34}, {38, 45, 39}, {39, 4, 33}, {39, 6, 40}, {39, 8, 22}, {39, 10, 6}, {39, 10, 17}, {39, 11, 29}, {39, 11, 36}, {39, 15, 6}, {39, 16, 24}, {39, 21, 30}, {39, 22, 43}, {39, 23, 44}, {39, 24, 30}, {39, 28, 16}, {39, 28, 24}, {39, 29, 27}, {39, 31, 37}, {39, 33, 6}, {39, 34, 28}, {39, 36, 14}, {39, 36, 28}, {39, 39, 42}, {39, 40, 15}, {39, 41, 16}, {39, 41, 17}, {39, 42, 9}, {40, 4, 23}, {40, 4, 25}, {40, 8, 7}, {40, 8, 30}, {40, 9, 25}, {40, 9, 40}, {40, 10, 25}, {40, 10, 26}, {40, 14, 31}, {40, 15, 30}, {40, 16, 38}, {40, 20, 8}, {40, 22, 20}, {40, 23, 11}, {40, 24, 36}, {40, 25, 18}, {40, 25, 41}, {40, 26, 5}, {40, 26, 35}, {40, 28, 22}, {40, 28, 35}, {40, 33, 11}, {40, 33, 16}, {40, 34, 27}, {40, 35, 4}, {40, 38, 11}, {40, 40, 33}, {40, 41, 14}, {40, 42, 34}, {40, 43, 30}, {40, 45, 11}, {40, 45, 33}, {41, 8, 22}, {41, 8, 35}, {41, 9, 42}, {41, 12, 7}, {41, 13, 33}, {41, 17, 8}, {41, 17, 9}, {41, 20, 43}, {41, 26, 20}, {41, 33, 7}, {41, 33, 20}, {41, 35, 33}, {41, 36, 24}, {41, 44, 37}, {42, 4, 8}, {42, 8, 13}, {42, 8, 32}, {42, 9, 13}, {42, 9, 14}, {42, 10, 18}, {42, 12, 13}, {42, 13, 8}, {42, 15, 37}, {42, 22, 34}, {42, 25, 20}, {42, 25, 35}, {42, 26, 37}, {42, 28, 14}, {42, 29, 9}, {42, 29, 26}, {42, 30, 41}, {42, 32, 27}, {42, 34, 13}, {42, 37, 29}, {42, 40, 35}, {42, 43, 32}, {42, 45, 14}, {43, 5, 5}, {43, 8, 5}, {43, 9, 4}, {43, 9, 14}, {43, 9, 41}, {43, 10, 8}, {43, 10, 15}, {43, 12, 12}, {43, 14, 6}, {43, 15, 39}, {43, 16, 37}, {43, 17, 31}, {43, 19, 44}, {43, 26, 8}, {43, 26, 34}, {43, 30, 6}, {43, 30, 14}, {43, 33, 36}, {43, 36, 22}, {43, 38, 9}, {43, 41, 28}, {43, 43, 28}, {43, 43, 40}, {43, 45, 20}, {43, 45, 31}, {44, 4, 24}, {44, 9, 19}, {44, 11, 11}, {44, 11, 34}, {44, 11, 38}, {44, 13, 8}, {44, 15, 8}, {44, 15, 37}, {44, 16, 9}, {44, 16, 18}, {44, 20, 6}, {44, 20, 40}, {44, 21, 6}, {44, 22, 35}, {44, 25, 20}, {44, 25, 45}, {44, 26, 9}, {44, 31, 25}, {44, 31, 27}, {44, 32, 26}, {44, 32, 45}, {44, 36, 35}, {44, 39, 33}, {44, 41, 15}, {44, 43, 16}, {44, 43, 24}, {44, 43, 27}, {44, 44, 35}, {44, 45, 20}, {45, 6, 44}, {45, 11, 28}, {45, 12, 14}, {45, 14, 26}, {45, 14, 35}, {45, 16, 14}, {45, 18, 16}, {45, 21, 26}, {45, 22, 21}, {45, 23, 21}, {45, 24, 7}, {45, 24, 43}, {45, 28, 35}, {45, 28, 38}, {45, 29, 9}, {45, 35, 25}, {45, 36, 19}, {45, 36, 29}, {45, 36, 38}, {45, 37, 7}, {45, 37, 9}, {45, 41, 39}, {45, 43, 21}, }; } else { printf("Unrecognized option: %s, exiting ...\n", argv[1]); return -1; } // Build benchmark KernelLauncher launcher = libsmm_acc_process_d; char buffer[1000]; char * kernel_descr[1] = {buffer}; int n_triplets = libsmm_acc_triplets.size(); printf("# Time %d blocksizes ...\n", n_triplets); int errors = 0; libsmm_acc_benchmark_t* handle; for (int i=0; i<n_triplets; i++) { printf("\n\n"); int m = libsmm_acc_triplets[i][0]; int n = libsmm_acc_triplets[i][1]; int k = libsmm_acc_triplets[i][2]; sprintf(buffer, "%d x %d x %d", m, n, k); libsmm_acc_benchmark_init(&handle, timing, m, n, k); errors += libsmm_acc_benchmark(handle, m, n, k, 1, &launcher, kernel_descr); libsmm_acc_benchmark_finalize(handle); } printf("# Done, found %d errors.\n", errors); return errors; }