/*------------------------------------------------------------------------------------------------* * 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, 8, 36}, { 4, 11, 37}, { 4, 13, 37}, { 4, 18, 28}, { 4, 19, 38}, { 4, 21, 44}, { 4, 22, 24}, { 4, 22, 28}, { 4, 23, 19}, { 4, 23, 34}, { 4, 24, 25}, { 4, 24, 41}, { 4, 30, 43}, { 4, 33, 14}, { 4, 38, 7}, { 4, 40, 43}, { 4, 41, 41}, { 4, 43, 10}, { 4, 43, 39}, { 4, 45, 11}, { 4, 45, 19}, { 5, 5, 22}, { 5, 6, 31}, { 5, 8, 23}, { 5, 8, 39}, { 5, 9, 35}, { 5, 9, 44}, { 5, 10, 33}, { 5, 13, 17}, { 5, 15, 6}, { 5, 18, 42}, { 5, 20, 31}, { 5, 23, 4}, { 5, 23, 36}, { 5, 23, 39}, { 5, 24, 6}, { 5, 29, 8}, { 5, 29, 11}, { 5, 31, 16}, { 5, 32, 23}, { 5, 37, 6}, { 5, 38, 5}, { 5, 42, 6}, { 5, 42, 27}, { 5, 43, 22}, { 5, 43, 37}, { 5, 43, 44}, { 5, 44, 12}, { 6, 7, 42}, { 6, 9, 19}, { 6, 9, 21}, { 6, 9, 29}, { 6, 10, 14}, { 6, 11, 9}, { 6, 13, 5}, { 6, 14, 17}, { 6, 15, 27}, { 6, 15, 38}, { 6, 17, 10}, { 6, 21, 11}, { 6, 24, 23}, { 6, 24, 35}, { 6, 27, 19}, { 6, 29, 17}, { 6, 30, 33}, { 6, 33, 27}, { 6, 33, 30}, { 6, 35, 5}, { 6, 36, 23}, { 6, 37, 23}, { 6, 39, 25}, { 6, 42, 44}, { 6, 43, 20}, { 7, 4, 34}, { 7, 5, 19}, { 7, 10, 39}, { 7, 10, 41}, { 7, 13, 8}, { 7, 13, 19}, { 7, 14, 19}, { 7, 18, 16}, { 7, 22, 45}, { 7, 23, 25}, { 7, 26, 20}, { 7, 28, 17}, { 7, 28, 41}, { 7, 29, 23}, { 7, 30, 26}, { 7, 30, 31}, { 7, 33, 5}, { 7, 34, 16}, { 7, 35, 32}, { 7, 37, 13}, { 7, 37, 28}, { 7, 37, 36}, { 7, 39, 45}, { 7, 40, 27}, { 7, 41, 5}, { 7, 43, 21}, { 7, 43, 44}, { 7, 44, 6}, { 7, 45, 30}, { 8, 4, 27}, { 8, 7, 30}, { 8, 8, 11}, { 8, 8, 14}, { 8, 10, 38}, { 8, 10, 43}, { 8, 13, 6}, { 8, 13, 42}, { 8, 15, 4}, { 8, 16, 39}, { 8, 23, 24}, { 8, 23, 25}, { 8, 24, 39}, { 8, 27, 21}, { 8, 27, 37}, { 8, 29, 37}, { 8, 30, 25}, { 8, 34, 35}, { 8, 36, 45}, { 8, 38, 20}, { 8, 38, 42}, { 8, 40, 5}, { 8, 41, 20}, { 8, 43, 28}, { 9, 7, 34}, { 9, 8, 18}, { 9, 8, 28}, { 9, 18, 7}, { 9, 19, 40}, { 9, 19, 41}, { 9, 22, 45}, { 9, 24, 27}, { 9, 28, 42}, { 9, 29, 19}, { 9, 32, 20}, { 9, 33, 28}, { 9, 33, 31}, { 9, 34, 19}, { 9, 38, 26}, { 9, 40, 37}, { 9, 41, 39}, { 9, 42, 34}, { 9, 43, 45}, {10, 6, 13}, {10, 8, 9}, {10, 9, 36}, {10, 11, 8}, {10, 11, 16}, {10, 15, 42}, {10, 16, 4}, {10, 17, 16}, {10, 18, 45}, {10, 21, 23}, {10, 22, 7}, {10, 25, 8}, {10, 28, 10}, {10, 29, 31}, {10, 32, 38}, {10, 33, 15}, {10, 33, 28}, {10, 33, 32}, {10, 37, 38}, {10, 37, 39}, {10, 37, 45}, {10, 39, 38}, {10, 40, 15}, {10, 42, 21}, {10, 43, 14}, {10, 45, 19}, {11, 6, 41}, {11, 9, 39}, {11, 10, 40}, {11, 12, 26}, {11, 14, 10}, {11, 14, 35}, {11, 17, 22}, {11, 17, 29}, {11, 18, 21}, {11, 19, 23}, {11, 20, 42}, {11, 23, 15}, {11, 26, 32}, {11, 26, 35}, {11, 27, 43}, {11, 29, 19}, {11, 29, 29}, {11, 30, 15}, {11, 35, 12}, {11, 36, 15}, {11, 36, 36}, {11, 37, 23}, {11, 38, 18}, {11, 39, 9}, {11, 43, 25}, {11, 44, 40}, {12, 4, 42}, {12, 9, 39}, {12, 10, 35}, {12, 12, 15}, {12, 12, 29}, {12, 12, 33}, {12, 15, 9}, {12, 17, 22}, {12, 19, 12}, {12, 23, 25}, {12, 25, 23}, {12, 28, 9}, {12, 28, 12}, {12, 28, 39}, {12, 29, 36}, {12, 33, 38}, {12, 35, 35}, {12, 36, 14}, {12, 36, 45}, {12, 37, 16}, {12, 38, 36}, {12, 39, 5}, {12, 42, 45}, {12, 45, 34}, {13, 6, 36}, {13, 7, 17}, {13, 8, 28}, {13, 9, 15}, {13, 14, 7}, {13, 14, 16}, {13, 14, 27}, {13, 14, 29}, {13, 19, 13}, {13, 20, 25}, {13, 21, 19}, {13, 21, 20}, {13, 21, 26}, {13, 22, 8}, {13, 25, 20}, {13, 26, 23}, {13, 28, 29}, {13, 29, 20}, {13, 33, 32}, {13, 35, 24}, {13, 35, 36}, {13, 39, 4}, {13, 42, 25}, {13, 42, 35}, {13, 43, 17}, {14, 4, 42}, {14, 9, 42}, {14, 11, 13}, {14, 11, 21}, {14, 12, 21}, {14, 18, 24}, {14, 19, 42}, {14, 20, 4}, {14, 20, 32}, {14, 21, 27}, {14, 21, 33}, {14, 22, 30}, {14, 22, 37}, {14, 24, 39}, {14, 25, 11}, {14, 25, 21}, {14, 27, 6}, {14, 27, 25}, {14, 29, 45}, {14, 30, 23}, {14, 31, 13}, {14, 33, 37}, {14, 33, 40}, {14, 36, 16}, {14, 36, 39}, {14, 36, 41}, {15, 4, 17}, {15, 8, 21}, {15, 9, 44}, {15, 10, 11}, {15, 11, 32}, {15, 12, 22}, {15, 13, 31}, {15, 13, 35}, {15, 14, 5}, {15, 14, 8}, {15, 14, 21}, {15, 18, 15}, {15, 18, 22}, {15, 19, 42}, {15, 22, 25}, {15, 24, 14}, {15, 26, 32}, {15, 32, 21}, {15, 34, 23}, {15, 36, 28}, {15, 37, 21}, {15, 38, 23}, {15, 40, 36}, {15, 42, 4}, {15, 43, 37}, {15, 44, 17}, {16, 5, 23}, {16, 5, 38}, {16, 7, 32}, {16, 11, 13}, {16, 13, 19}, {16, 17, 34}, {16, 17, 36}, {16, 22, 13}, {16, 22, 32}, {16, 23, 5}, {16, 27, 25}, {16, 28, 12}, {16, 28, 25}, {16, 31, 13}, {16, 31, 40}, {16, 32, 31}, {16, 33, 27}, {16, 34, 39}, {16, 36, 39}, {16, 40, 27}, {16, 41, 21}, {16, 43, 22}, {17, 4, 30}, {17, 5, 15}, {17, 6, 36}, {17, 6, 40}, {17, 9, 41}, {17, 10, 32}, {17, 10, 43}, {17, 13, 24}, {17, 19, 29}, {17, 20, 34}, {17, 21, 30}, {17, 23, 14}, {17, 26, 33}, {17, 35, 41}, {17, 37, 26}, {17, 37, 31}, {17, 39, 40}, {17, 44, 6}, {17, 45, 6}, {17, 45, 35}, {18, 4, 7}, {18, 5, 37}, {18, 8, 25}, {18, 10, 8}, {18, 12, 25}, {18, 12, 39}, {18, 13, 29}, {18, 14, 8}, {18, 15, 15}, {18, 17, 31}, {18, 18, 31}, {18, 20, 20}, {18, 24, 24}, {18, 28, 29}, {18, 28, 45}, {18, 29, 16}, {18, 29, 32}, {18, 34, 33}, {18, 36, 5}, {18, 37, 10}, {18, 37, 39}, {18, 40, 33}, {18, 44, 22}, {19, 4, 38}, {19, 6, 26}, {19, 8, 33}, {19, 9, 13}, {19, 10, 10}, {19, 10, 25}, {19, 13, 35}, {19, 13, 38}, {19, 14, 22}, {19, 15, 42}, {19, 17, 36}, {19, 19, 12}, {19, 21, 40}, {19, 22, 5}, {19, 23, 14}, {19, 26, 13}, {19, 27, 14}, {19, 28, 19}, {19, 32, 9}, {19, 34, 18}, {19, 35, 29}, {19, 35, 30}, {19, 36, 35}, {19, 38, 16}, {19, 38, 33}, {19, 39, 9}, {19, 40, 33}, {19, 41, 16}, {19, 41, 19}, {19, 42, 35}, {19, 44, 17}, {19, 45, 24}, {19, 45, 37}, {20, 4, 38}, {20, 5, 24}, {20, 5, 39}, {20, 6, 11}, {20, 6, 44}, {20, 9, 24}, {20, 10, 4}, {20, 11, 31}, {20, 13, 19}, {20, 14, 9}, {20, 20, 41}, {20, 22, 24}, {20, 23, 8}, {20, 23, 12}, {20, 23, 26}, {20, 27, 36}, {20, 30, 31}, {20, 31, 9}, {20, 31, 36}, {20, 34, 17}, {20, 34, 18}, {20, 35, 29}, {20, 38, 40}, {20, 42, 42}, {20, 44, 14}, {21, 4, 22}, {21, 10, 21}, {21, 10, 32}, {21, 13, 38}, {21, 13, 40}, {21, 14, 21}, {21, 17, 5}, {21, 19, 8}, {21, 22, 4}, {21, 22, 13}, {21, 22, 15}, {21, 23, 26}, {21, 25, 42}, {21, 26, 26}, {21, 28, 18}, {21, 30, 28}, {21, 31, 37}, {21, 32, 17}, {21, 38, 29}, {21, 42, 43}, {21, 44, 26}, {21, 45, 31}, {22, 5, 33}, {22, 6, 42}, {22, 10, 31}, {22, 10, 45}, {22, 15, 9}, {22, 16, 11}, {22, 16, 22}, {22, 20, 4}, {22, 22, 5}, {22, 22, 20}, {22, 24, 7}, {22, 24, 18}, {22, 24, 22}, {22, 24, 39}, {22, 25, 22}, {22, 27, 33}, {22, 31, 27}, {22, 31, 42}, {22, 36, 4}, {22, 38, 16}, {22, 38, 29}, {22, 39, 17}, {22, 40, 12}, {22, 40, 18}, {22, 41, 7}, {22, 44, 7}, {22, 44, 9}, {23, 5, 25}, {23, 9, 27}, {23, 15, 45}, {23, 23, 32}, {23, 24, 4}, {23, 28, 36}, {23, 33, 19}, {23, 37, 13}, {23, 37, 33}, {23, 38, 29}, {23, 38, 33}, {23, 39, 20}, {23, 40, 37}, {23, 41, 4}, {23, 41, 38}, {23, 41, 40}, {23, 43, 39}, {23, 43, 41}, {23, 44, 41}, {24, 4, 16}, {24, 4, 28}, {24, 4, 41}, {24, 5, 41}, {24, 7, 13}, {24, 9, 25}, {24, 11, 28}, {24, 13, 20}, {24, 14, 6}, {24, 20, 19}, {24, 23, 41}, {24, 26, 25}, {24, 27, 25}, {24, 29, 41}, {24, 31, 26}, {24, 31, 27}, {24, 33, 22}, {24, 33, 25}, {24, 34, 8}, {24, 34, 19}, {24, 35, 33}, {24, 35, 34}, {24, 35, 37}, {24, 36, 13}, {24, 39, 21}, {24, 40, 10}, {24, 40, 15}, {24, 42, 17}, {24, 43, 14}, {24, 43, 20}, {24, 44, 27}, {25, 5, 19}, {25, 6, 7}, {25, 6, 32}, {25, 6, 40}, {25, 10, 13}, {25, 11, 41}, {25, 12, 16}, {25, 12, 45}, {25, 14, 18}, {25, 21, 5}, {25, 22, 11}, {25, 23, 10}, {25, 24, 9}, {25, 24, 15}, {25, 26, 15}, {25, 27, 5}, {25, 27, 7}, {25, 27, 35}, {25, 28, 24}, {25, 29, 34}, {25, 30, 22}, {25, 36, 24}, {25, 40, 30}, {25, 42, 36}, {26, 4, 34}, {26, 5, 19}, {26, 5, 31}, {26, 10, 44}, {26, 12, 14}, {26, 14, 30}, {26, 15, 34}, {26, 18, 16}, {26, 18, 20}, {26, 19, 31}, {26, 22, 31}, {26, 23, 25}, {26, 24, 30}, {26, 25, 18}, {26, 27, 33}, {26, 29, 18}, {26, 30, 30}, {26, 31, 15}, {26, 31, 21}, {26, 38, 22}, {26, 38, 32}, {26, 39, 10}, {26, 39, 15}, {26, 43, 21}, {26, 43, 22}, {26, 44, 17}, {26, 44, 40}, {26, 45, 11}, {26, 45, 38}, {27, 8, 20}, {27, 11, 18}, {27, 14, 19}, {27, 15, 36}, {27, 16, 15}, {27, 18, 14}, {27, 18, 35}, {27, 19, 23}, {27, 22, 11}, {27, 23, 43}, {27, 24, 26}, {27, 26, 25}, {27, 26, 34}, {27, 27, 18}, {27, 27, 19}, {27, 27, 43}, {27, 28, 33}, {27, 30, 43}, {27, 31, 39}, {27, 32, 42}, {27, 36, 22}, {27, 38, 36}, {27, 43, 13}, {27, 43, 20}, {27, 45, 11}, {28, 4, 16}, {28, 5, 15}, {28, 9, 19}, {28, 14, 6}, {28, 14, 16}, {28, 15, 31}, {28, 17, 32}, {28, 19, 4}, {28, 19, 8}, {28, 20, 21}, {28, 21, 22}, {28, 23, 25}, {28, 24, 19}, {28, 28, 21}, {28, 30, 35}, {28, 32, 34}, {28, 34, 17}, {28, 34, 30}, {28, 37, 34}, {28, 42, 11}, {28, 43, 12}, {29, 6, 25}, {29, 8, 18}, {29, 10, 5}, {29, 10, 35}, {29, 11, 35}, {29, 15, 13}, {29, 17, 26}, {29, 17, 41}, {29, 20, 17}, {29, 27, 17}, {29, 28, 17}, {29, 29, 24}, {29, 29, 39}, {29, 29, 43}, {29, 30, 6}, {29, 30, 12}, {29, 30, 38}, {29, 32, 21}, {29, 32, 22}, {29, 37, 13}, {29, 38, 21}, {29, 38, 26}, {29, 39, 26}, {29, 39, 38}, {29, 43, 28}, {29, 45, 15}, {30, 6, 7}, {30, 7, 37}, {30, 11, 22}, {30, 11, 24}, {30, 13, 10}, {30, 15, 21}, {30, 15, 28}, {30, 15, 32}, {30, 16, 20}, {30, 18, 26}, {30, 18, 38}, {30, 22, 36}, {30, 24, 29}, {30, 26, 41}, {30, 27, 20}, {30, 28, 33}, {30, 28, 38}, {30, 34, 13}, {30, 34, 40}, {30, 35, 19}, {30, 40, 20}, {30, 41, 6}, {30, 42, 8}, {30, 43, 22}, {30, 44, 28}, {30, 45, 9}, {31, 10, 6}, {31, 10, 15}, {31, 12, 8}, {31, 21, 5}, {31, 22, 27}, {31, 22, 39}, {31, 28, 37}, {31, 29, 16}, {31, 31, 8}, {31, 35, 20}, {31, 36, 35}, {31, 39, 8}, {31, 44, 13}, {31, 44, 30}, {31, 45, 27}, {32, 7, 16}, {32, 10, 43}, {32, 11, 4}, {32, 15, 20}, {32, 17, 10}, {32, 17, 27}, {32, 18, 29}, {32, 21, 10}, {32, 21, 42}, {32, 24, 30}, {32, 26, 35}, {32, 27, 42}, {32, 29, 9}, {32, 30, 38}, {32, 32, 6}, {32, 32, 17}, {32, 33, 38}, {32, 33, 40}, {32, 34, 4}, {32, 35, 19}, {32, 35, 20}, {32, 37, 39}, {32, 39, 13}, {32, 39, 14}, {32, 39, 21}, {32, 40, 18}, {32, 42, 8}, {32, 42, 31}, {32, 44, 21}, {32, 45, 16}, {33, 4, 17}, {33, 5, 39}, {33, 6, 42}, {33, 7, 11}, {33, 8, 31}, {33, 9, 15}, {33, 9, 26}, {33, 10, 15}, {33, 14, 7}, {33, 15, 12}, {33, 20, 21}, {33, 21, 21}, {33, 23, 30}, {33, 30, 12}, {33, 31, 27}, {33, 32, 13}, {33, 32, 22}, {33, 32, 30}, {33, 36, 33}, {33, 41, 23}, {33, 44, 30}, {34, 9, 42}, {34, 13, 7}, {34, 15, 10}, {34, 19, 38}, {34, 21, 26}, {34, 28, 21}, {34, 28, 37}, {34, 29, 31}, {34, 30, 25}, {34, 31, 24}, {34, 35, 22}, {34, 40, 25}, {34, 42, 24}, {34, 43, 4}, {34, 43, 17}, {35, 6, 27}, {35, 6, 41}, {35, 6, 42}, {35, 7, 14}, {35, 8, 41}, {35, 9, 21}, {35, 12, 39}, {35, 13, 6}, {35, 19, 15}, {35, 19, 21}, {35, 21, 38}, {35, 22, 20}, {35, 23, 32}, {35, 23, 43}, {35, 24, 24}, {35, 25, 9}, {35, 27, 11}, {35, 27, 18}, {35, 31, 33}, {35, 33, 27}, {35, 37, 35}, {35, 39, 37}, {35, 40, 29}, {35, 41, 43}, {35, 45, 14}, {35, 45, 32}, {36, 4, 28}, {36, 4, 36}, {36, 6, 20}, {36, 7, 33}, {36, 7, 44}, {36, 9, 36}, {36, 10, 5}, {36, 13, 20}, {36, 14, 16}, {36, 14, 27}, {36, 19, 5}, {36, 20, 18}, {36, 22, 12}, {36, 23, 20}, {36, 24, 21}, {36, 26, 5}, {36, 27, 6}, {36, 27, 35}, {36, 28, 36}, {36, 30, 34}, {36, 30, 40}, {36, 31, 9}, {36, 32, 36}, {36, 35, 4}, {36, 36, 14}, {36, 37, 22}, {36, 38, 26}, {36, 40, 16}, {36, 42, 19}, {36, 45, 6}, {36, 45, 11}, {37, 5, 6}, {37, 8, 19}, {37, 9, 10}, {37, 12, 7}, {37, 15, 35}, {37, 17, 28}, {37, 19, 29}, {37, 19, 40}, {37, 23, 30}, {37, 25, 40}, {37, 30, 45}, {37, 31, 38}, {37, 37, 31}, {37, 37, 36}, {37, 38, 43}, {37, 41, 14}, {37, 42, 31}, {37, 43, 29}, {38, 4, 5}, {38, 7, 13}, {38, 7, 37}, {38, 11, 10}, {38, 11, 35}, {38, 11, 36}, {38, 13, 31}, {38, 16, 13}, {38, 21, 41}, {38, 23, 12}, {38, 23, 27}, {38, 23, 40}, {38, 25, 29}, {38, 28, 33}, {38, 29, 30}, {38, 29, 38}, {38, 29, 40}, {38, 32, 16}, {38, 34, 41}, {38, 35, 42}, {38, 36, 17}, {38, 37, 21}, {38, 38, 7}, {38, 38, 12}, {38, 41, 6}, {39, 7, 25}, {39, 8, 27}, {39, 10, 29}, {39, 10, 41}, {39, 12, 29}, {39, 12, 43}, {39, 13, 22}, {39, 14, 34}, {39, 15, 10}, {39, 16, 44}, {39, 17, 45}, {39, 18, 27}, {39, 18, 36}, {39, 21, 20}, {39, 25, 35}, {39, 26, 39}, {39, 28, 35}, {39, 30, 6}, {39, 36, 45}, {39, 38, 18}, {39, 38, 26}, {39, 39, 33}, {39, 41, 25}, {39, 41, 41}, {39, 43, 9}, {39, 43, 43}, {39, 44, 15}, {39, 44, 43}, {40, 5, 44}, {40, 6, 37}, {40, 8, 15}, {40, 10, 29}, {40, 13, 34}, {40, 15, 23}, {40, 15, 27}, {40, 16, 18}, {40, 16, 42}, {40, 22, 41}, {40, 23, 11}, {40, 24, 27}, {40, 27, 14}, {40, 30, 34}, {40, 32, 45}, {40, 36, 28}, {40, 37, 13}, {40, 38, 27}, {40, 40, 7}, {40, 40, 18}, {40, 42, 13}, {40, 43, 29}, {40, 43, 43}, {41, 5, 16}, {41, 6, 33}, {41, 12, 40}, {41, 13, 18}, {41, 18, 30}, {41, 20, 33}, {41, 20, 39}, {41, 23, 12}, {41, 23, 21}, {41, 24, 45}, {41, 25, 38}, {41, 27, 44}, {41, 28, 9}, {41, 31, 5}, {41, 31, 18}, {41, 38, 32}, {41, 38, 34}, {41, 38, 42}, {41, 42, 11}, {42, 5, 13}, {42, 5, 28}, {42, 6, 16}, {42, 10, 6}, {42, 12, 10}, {42, 12, 20}, {42, 14, 5}, {42, 15, 23}, {42, 16, 6}, {42, 17, 34}, {42, 17, 43}, {42, 18, 10}, {42, 20, 41}, {42, 21, 45}, {42, 25, 12}, {42, 25, 25}, {42, 29, 44}, {42, 30, 40}, {42, 31, 28}, {42, 32, 6}, {42, 40, 32}, {42, 44, 44}, {43, 7, 24}, {43, 7, 41}, {43, 12, 16}, {43, 13, 25}, {43, 15, 34}, {43, 15, 44}, {43, 20, 21}, {43, 25, 10}, {43, 25, 35}, {43, 26, 6}, {43, 27, 41}, {43, 28, 32}, {43, 30, 42}, {43, 31, 10}, {43, 34, 14}, {43, 35, 21}, {43, 37, 29}, {43, 43, 36}, {43, 44, 40}, {43, 45, 26}, {44, 5, 23}, {44, 6, 19}, {44, 6, 31}, {44, 7, 22}, {44, 7, 25}, {44, 12, 30}, {44, 13, 9}, {44, 17, 20}, {44, 18, 34}, {44, 22, 28}, {44, 23, 14}, {44, 25, 15}, {44, 28, 32}, {44, 30, 13}, {44, 30, 26}, {44, 30, 34}, {44, 30, 43}, {44, 33, 37}, {44, 34, 5}, {44, 39, 41}, {44, 44, 20}, {45, 5, 18}, {45, 5, 37}, {45, 7, 37}, {45, 8, 26}, {45, 10, 31}, {45, 14, 12}, {45, 18, 6}, {45, 18, 14}, {45, 19, 31}, {45, 28, 42}, {45, 31, 9}, {45, 33, 4}, {45, 34, 26}, {45, 42, 25}, {45, 44, 38}, }; } 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; }