/*------------------------------------------------------------------------------------------------* * 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 <stdio.h> #include <stdlib.h> #include <vector> #include <array> #include "libsmm_acc_benchmark.h" #include "libsmm_acc.h" /****************************************************************************\ \brief Checks correctness of randomly selected libsmm_acc multiplication kernels \****************************************************************************/ int main(int argc, char** argv) { DBCSR_MARK_USED(argc); DBCSR_MARK_USED(argv); KernelLauncher launcher_mm = libsmm_acc_process_d; char buffer[1000]; char * kernel_descr[1] = {buffer}; // Get all blocksizes available in libsmm_acc std::vector<Triplet> 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, 20}, { 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, 6, 18}, { 4, 7, 4}, { 4, 7, 5}, { 4, 7, 6}, { 4, 7, 7}, { 4, 7, 8}, { 4, 7, 9}, { 4, 7, 13}, { 4, 7, 19}, { 4, 7, 25}, { 4, 7, 26}, { 4, 7, 27}, { 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, 10, 32}, { 4, 11, 18}, { 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, 24, 8}, { 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, 31, 13}, { 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, 41}, { 4, 32, 45}, { 4, 33, 45}, { 4, 34, 15}, { 4, 34, 44}, { 4, 37, 33}, { 4, 37, 45}, { 4, 40, 23}, { 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, 40}, { 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, 27}, { 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, 18}, { 5, 9, 21}, { 5, 9, 25}, { 5, 9, 26}, { 5, 9, 28}, { 5, 9, 32}, { 5, 9, 45}, { 5, 10, 36}, { 5, 12, 5}, { 5, 12, 12}, { 5, 12, 13}, { 5, 12, 23}, { 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, 15}, { 5, 13, 16}, { 5, 13, 24}, { 5, 13, 25}, { 5, 13, 26}, { 5, 13, 28}, { 5, 13, 32}, { 5, 13, 45}, { 5, 14, 8}, { 5, 16, 5}, { 5, 16, 13}, { 5, 16, 15}, { 5, 16, 16}, { 5, 16, 30}, { 5, 16, 32}, { 5, 16, 33}, { 5, 19, 30}, { 5, 21, 29}, { 5, 22, 29}, { 5, 24, 5}, { 5, 24, 13}, { 5, 24, 24}, { 5, 24, 26}, { 5, 24, 32}, { 5, 24, 38}, { 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, 8}, { 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, 30, 30}, { 5, 31, 15}, { 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, 33, 19}, { 5, 35, 30}, { 5, 37, 16}, { 5, 38, 20}, { 5, 38, 33}, { 5, 42, 33}, { 5, 43, 31}, { 5, 45, 4}, { 5, 45, 5}, { 5, 45, 7}, { 5, 45, 9}, { 5, 45, 13}, { 5, 45, 15}, { 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, 4, 40}, { 6, 5, 4}, { 6, 5, 5}, { 6, 5, 6}, { 6, 5, 7}, { 6, 5, 8}, { 6, 5, 9}, { 6, 5, 29}, { 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}, { 6, 9, 44}, { 6, 12, 6}, { 6, 16, 35}, { 6, 17, 4}, { 6, 17, 12}, { 6, 18, 31}, { 6, 19, 13}, { 6, 19, 34}, { 6, 30, 29}, { 6, 31, 37}, { 6, 32, 43}, { 6, 33, 14}, { 6, 33, 41}, { 6, 39, 45}, { 6, 40, 41}, { 6, 42, 24}, { 6, 44, 11}, { 6, 45, 15}, { 6, 45, 29}, { 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, 29}, { 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, 35}, { 7, 5, 45}, { 7, 6, 4}, { 7, 6, 5}, { 7, 6, 6}, { 7, 6, 7}, { 7, 6, 8}, { 7, 6, 9}, { 7, 6, 26}, { 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, 11, 23}, { 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, 14, 22}, { 7, 20, 35}, { 7, 23, 33}, { 7, 25, 4}, { 7, 25, 5}, { 7, 25, 7}, { 7, 25, 9}, { 7, 25, 13}, { 7, 25, 17}, { 7, 25, 21}, { 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, 27, 34}, { 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, 29, 22}, { 7, 29, 26}, { 7, 29, 28}, { 7, 32, 4}, { 7, 32, 5}, { 7, 32, 7}, { 7, 32, 9}, { 7, 32, 13}, { 7, 32, 14}, { 7, 32, 25}, { 7, 32, 26}, { 7, 32, 28}, { 7, 32, 32}, { 7, 32, 45}, { 7, 33, 28}, { 7, 39, 4}, { 7, 42, 13}, { 7, 44, 23}, { 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, 4, 15}, { 8, 4, 31}, { 8, 5, 4}, { 8, 5, 5}, { 8, 5, 6}, { 8, 5, 7}, { 8, 5, 8}, { 8, 5, 9}, { 8, 5, 34}, { 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}, { 8, 9, 10}, { 8, 10, 4}, { 8, 11, 42}, { 8, 15, 28}, { 8, 15, 38}, { 8, 16, 6}, { 8, 18, 23}, { 8, 20, 27}, { 8, 20, 34}, { 8, 25, 12}, { 8, 26, 19}, { 8, 26, 39}, { 8, 28, 26}, { 8, 29, 34}, { 8, 30, 29}, { 8, 31, 41}, { 8, 33, 43}, { 8, 34, 16}, { 8, 35, 38}, { 8, 36, 31}, { 8, 43, 6}, { 8, 43, 25}, { 8, 45, 35}, { 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, 11, 27}, { 9, 12, 9}, { 9, 12, 10}, { 9, 12, 12}, { 9, 12, 14}, { 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, 14, 41}, { 9, 17, 11}, { 9, 17, 28}, { 9, 17, 45}, { 9, 22, 9}, { 9, 22, 15}, { 9, 22, 22}, { 9, 22, 31}, { 9, 22, 32}, { 9, 23, 30}, { 9, 25, 4}, { 9, 25, 5}, { 9, 25, 7}, { 9, 25, 9}, { 9, 25, 13}, { 9, 25, 17}, { 9, 25, 25}, { 9, 25, 26}, { 9, 25, 28}, { 9, 25, 32}, { 9, 25, 37}, { 9, 25, 45}, { 9, 26, 4}, { 9, 26, 5}, { 9, 26, 7}, { 9, 26, 9}, { 9, 26, 13}, { 9, 26, 15}, { 9, 26, 25}, { 9, 26, 26}, { 9, 26, 28}, { 9, 26, 32}, { 9, 26, 45}, { 9, 27, 9}, { 9, 28, 4}, { 9, 28, 5}, { 9, 28, 7}, { 9, 28, 9}, { 9, 28, 11}, { 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, 35, 7}, { 9, 36, 41}, { 9, 38, 37}, { 9, 45, 4}, { 9, 45, 5}, { 9, 45, 7}, { 9, 45, 9}, { 9, 45, 11}, { 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, 5, 30}, {10, 9, 9}, {10, 9, 10}, {10, 9, 12}, {10, 9, 18}, {10, 9, 25}, {10, 9, 32}, {10, 9, 34}, {10, 10, 4}, {10, 10, 9}, {10, 10, 10}, {10, 10, 11}, {10, 10, 12}, {10, 10, 15}, {10, 10, 27}, {10, 10, 32}, {10, 11, 14}, {10, 12, 9}, {10, 12, 10}, {10, 12, 12}, {10, 12, 29}, {10, 12, 32}, {10, 15, 4}, {10, 15, 10}, {10, 15, 15}, {10, 18, 19}, {10, 23, 25}, {10, 24, 36}, {10, 28, 41}, {10, 32, 9}, {10, 32, 10}, {10, 32, 12}, {10, 32, 32}, {10, 34, 16}, {10, 37, 39}, {10, 41, 31}, {10, 44, 36}, {10, 45, 38}, {10, 45, 44}, {11, 4, 31}, {11, 7, 36}, {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, 22}, {11, 12, 25}, {11, 12, 32}, {11, 14, 32}, {11, 15, 38}, {11, 16, 20}, {11, 16, 40}, {11, 18, 35}, {11, 20, 11}, {11, 20, 12}, {11, 20, 20}, {11, 20, 25}, {11, 20, 32}, {11, 22, 4}, {11, 23, 23}, {11, 25, 11}, {11, 25, 12}, {11, 25, 20}, {11, 25, 22}, {11, 25, 25}, {11, 25, 32}, {11, 30, 6}, {11, 31, 26}, {11, 32, 11}, {11, 32, 12}, {11, 32, 18}, {11, 32, 20}, {11, 32, 25}, {11, 32, 32}, {11, 33, 10}, {11, 34, 40}, {11, 37, 4}, {11, 39, 25}, {11, 43, 34}, {11, 45, 4}, {12, 5, 5}, {12, 5, 12}, {12, 5, 13}, {12, 5, 26}, {12, 5, 32}, {12, 6, 34}, {12, 6, 42}, {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, 31}, {12, 13, 32}, {12, 14, 31}, {12, 16, 12}, {12, 16, 16}, {12, 16, 32}, {12, 18, 45}, {12, 19, 22}, {12, 19, 37}, {12, 19, 39}, {12, 20, 11}, {12, 20, 12}, {12, 20, 20}, {12, 20, 21}, {12, 20, 25}, {12, 20, 32}, {12, 22, 32}, {12, 24, 35}, {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, 28, 19}, {12, 30, 25}, {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}, {12, 32, 33}, {12, 32, 34}, {12, 34, 4}, {12, 34, 32}, {12, 40, 22}, {12, 43, 4}, {12, 43, 13}, {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, 6, 35}, {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, 31}, {13, 7, 32}, {13, 7, 45}, {13, 8, 28}, {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, 43}, {13, 9, 45}, {13, 11, 11}, {13, 11, 28}, {13, 11, 41}, {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, 19}, {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, 15, 19}, {13, 15, 37}, {13, 16, 5}, {13, 16, 12}, {13, 16, 13}, {13, 16, 16}, {13, 16, 27}, {13, 16, 32}, {13, 17, 9}, {13, 17, 12}, {13, 19, 11}, {13, 19, 31}, {13, 19, 34}, {13, 21, 7}, {13, 24, 5}, {13, 24, 11}, {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, 10}, {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, 31, 36}, {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, 33, 30}, {13, 35, 44}, {13, 37, 16}, {13, 38, 32}, {13, 39, 41}, {13, 40, 31}, {13, 42, 28}, {13, 44, 8}, {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, 4, 21}, {14, 8, 28}, {14, 9, 42}, {14, 13, 13}, {14, 13, 14}, {14, 13, 25}, {14, 13, 26}, {14, 13, 32}, {14, 14, 8}, {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, 16, 43}, {14, 24, 12}, {14, 25, 13}, {14, 25, 14}, {14, 25, 16}, {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, 29, 37}, {14, 30, 25}, {14, 31, 21}, {14, 32, 13}, {14, 32, 14}, {14, 32, 25}, {14, 32, 26}, {14, 32, 29}, {14, 32, 32}, {14, 34, 42}, {14, 36, 37}, {14, 38, 8}, {14, 38, 12}, {14, 38, 13}, {14, 38, 42}, {14, 40, 8}, {15, 4, 4}, {15, 4, 8}, {15, 4, 10}, {15, 4, 15}, {15, 4, 28}, {15, 4, 37}, {15, 5, 29}, {15, 7, 22}, {15, 7, 33}, {15, 9, 19}, {15, 10, 4}, {15, 10, 8}, {15, 10, 10}, {15, 10, 15}, {15, 12, 9}, {15, 14, 7}, {15, 14, 23}, {15, 14, 26}, {15, 15, 4}, {15, 15, 10}, {15, 15, 15}, {15, 15, 36}, {15, 16, 40}, {15, 18, 39}, {15, 19, 15}, {15, 21, 39}, {15, 25, 43}, {15, 26, 6}, {15, 30, 24}, {15, 36, 37}, {15, 37, 18}, {15, 37, 37}, {15, 37, 40}, {15, 43, 5}, {15, 43, 16}, {15, 43, 31}, {15, 44, 38}, {15, 45, 20}, {15, 45, 39}, {16, 4, 37}, {16, 5, 5}, {16, 5, 13}, {16, 5, 16}, {16, 5, 32}, {16, 8, 22}, {16, 9, 23}, {16, 12, 12}, {16, 12, 13}, {16, 12, 16}, {16, 12, 32}, {16, 12, 39}, {16, 13, 5}, {16, 13, 13}, {16, 13, 16}, {16, 13, 32}, {16, 14, 14}, {16, 14, 16}, {16, 14, 23}, {16, 14, 29}, {16, 16, 5}, {16, 16, 12}, {16, 16, 13}, {16, 16, 14}, {16, 16, 16}, {16, 16, 17}, {16, 16, 29}, {16, 16, 32}, {16, 20, 21}, {16, 20, 41}, {16, 21, 29}, {16, 21, 35}, {16, 22, 31}, {16, 24, 17}, {16, 28, 26}, {16, 29, 14}, {16, 29, 16}, {16, 29, 25}, {16, 29, 29}, {16, 29, 41}, {16, 30, 26}, {16, 31, 31}, {16, 32, 5}, {16, 32, 12}, {16, 32, 13}, {16, 32, 16}, {16, 32, 32}, {16, 34, 36}, {16, 35, 41}, {16, 37, 6}, {16, 38, 32}, {16, 42, 25}, {17, 4, 32}, {17, 9, 19}, {17, 9, 36}, {17, 10, 31}, {17, 11, 29}, {17, 13, 26}, {17, 17, 17}, {17, 17, 31}, {17, 20, 30}, {17, 21, 36}, {17, 22, 45}, {17, 23, 44}, {17, 26, 40}, {17, 30, 9}, {17, 31, 12}, {17, 32, 5}, {17, 32, 15}, {17, 36, 30}, {17, 38, 27}, {17, 39, 25}, {17, 44, 14}, {18, 8, 29}, {18, 10, 17}, {18, 11, 5}, {18, 11, 21}, {18, 14, 13}, {18, 16, 32}, {18, 17, 5}, {18, 17, 26}, {18, 18, 18}, {18, 18, 24}, {18, 20, 26}, {18, 20, 31}, {18, 21, 19}, {18, 22, 8}, {18, 25, 16}, {18, 25, 17}, {18, 25, 19}, {18, 31, 6}, {18, 33, 22}, {18, 33, 28}, {18, 34, 26}, {18, 35, 18}, {18, 35, 24}, {18, 36, 19}, {18, 36, 32}, {18, 39, 6}, {19, 5, 13}, {19, 5, 15}, {19, 5, 31}, {19, 8, 18}, {19, 10, 28}, {19, 12, 44}, {19, 13, 42}, {19, 14, 40}, {19, 17, 36}, {19, 19, 19}, {19, 24, 36}, {19, 26, 9}, {19, 26, 10}, {19, 29, 28}, {19, 34, 15}, {19, 38, 6}, {19, 38, 14}, {19, 39, 13}, {19, 42, 18}, {19, 43, 5}, {20, 5, 28}, {20, 7, 7}, {20, 10, 30}, {20, 11, 11}, {20, 11, 12}, {20, 11, 13}, {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, 13, 13}, {20, 14, 26}, {20, 14, 31}, {20, 14, 36}, {20, 19, 44}, {20, 20, 11}, {20, 20, 12}, {20, 20, 20}, {20, 20, 25}, {20, 20, 32}, {20, 20, 38}, {20, 21, 9}, {20, 23, 33}, {20, 24, 8}, {20, 24, 32}, {20, 25, 11}, {20, 25, 12}, {20, 25, 18}, {20, 25, 20}, {20, 25, 25}, {20, 25, 32}, {20, 28, 8}, {20, 28, 34}, {20, 32, 11}, {20, 32, 12}, {20, 32, 20}, {20, 32, 25}, {20, 32, 32}, {20, 33, 33}, {20, 34, 12}, {20, 35, 6}, {20, 35, 22}, {20, 37, 15}, {20, 37, 39}, {20, 37, 40}, {20, 38, 30}, {20, 39, 9}, {20, 42, 35}, {20, 45, 20}, {21, 5, 45}, {21, 6, 37}, {21, 7, 20}, {21, 9, 13}, {21, 12, 22}, {21, 16, 25}, {21, 19, 32}, {21, 20, 15}, {21, 20, 25}, {21, 21, 21}, {21, 21, 44}, {21, 23, 14}, {21, 23, 34}, {21, 24, 12}, {21, 24, 20}, {21, 25, 31}, {21, 26, 39}, {21, 27, 15}, {21, 27, 42}, {21, 29, 15}, {21, 34, 6}, {21, 38, 43}, {21, 39, 8}, {21, 39, 45}, {21, 40, 21}, {21, 42, 13}, {21, 43, 17}, {21, 43, 33}, {22, 4, 20}, {22, 6, 17}, {22, 9, 9}, {22, 9, 22}, {22, 9, 32}, {22, 10, 14}, {22, 11, 45}, {22, 18, 10}, {22, 22, 9}, {22, 22, 22}, {22, 22, 32}, {22, 25, 7}, {22, 28, 16}, {22, 29, 29}, {22, 32, 9}, {22, 32, 22}, {22, 32, 32}, {22, 38, 4}, {22, 39, 8}, {22, 43, 34}, {22, 45, 45}, {23, 6, 10}, {23, 7, 14}, {23, 7, 22}, {23, 9, 4}, {23, 10, 31}, {23, 10, 35}, {23, 12, 17}, {23, 15, 5}, {23, 15, 7}, {23, 16, 45}, {23, 17, 39}, {23, 23, 6}, {23, 23, 23}, {23, 24, 14}, {23, 25, 38}, {23, 28, 22}, {23, 29, 38}, {23, 33, 10}, {23, 33, 37}, {23, 35, 41}, {23, 36, 14}, {23, 40, 14}, {23, 40, 21}, {23, 41, 25}, {23, 42, 34}, {23, 43, 5}, {23, 45, 14}, {23, 45, 38}, {24, 4, 29}, {24, 5, 5}, {24, 5, 13}, {24, 5, 24}, {24, 5, 26}, {24, 5, 32}, {24, 6, 38}, {24, 9, 7}, {24, 9, 16}, {24, 13, 5}, {24, 13, 9}, {24, 13, 12}, {24, 13, 13}, {24, 13, 23}, {24, 13, 24}, {24, 13, 26}, {24, 13, 31}, {24, 13, 32}, {24, 16, 35}, {24, 19, 37}, {24, 20, 25}, {24, 22, 22}, {24, 24, 5}, {24, 24, 13}, {24, 24, 24}, {24, 24, 26}, {24, 24, 32}, {24, 25, 6}, {24, 26, 5}, {24, 26, 13}, {24, 26, 24}, {24, 26, 26}, {24, 26, 32}, {24, 29, 20}, {24, 31, 19}, {24, 31, 24}, {24, 32, 5}, {24, 32, 13}, {24, 32, 24}, {24, 32, 26}, {24, 32, 32}, {24, 38, 13}, {24, 42, 34}, {24, 44, 20}, {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, 18}, {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, 11, 35}, {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, 22}, {25, 14, 25}, {25, 14, 26}, {25, 14, 32}, {25, 14, 38}, {25, 18, 13}, {25, 20, 11}, {25, 20, 12}, {25, 20, 16}, {25, 20, 20}, {25, 20, 25}, {25, 20, 32}, {25, 22, 4}, {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, 27}, {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, 27, 37}, {25, 27, 38}, {25, 27, 39}, {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, 31, 34}, {25, 31, 43}, {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, 42, 21}, {25, 43, 11}, {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, 8, 40}, {26, 9, 4}, {26, 9, 5}, {26, 9, 6}, {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, 30}, {26, 12, 32}, {26, 13, 4}, {26, 13, 5}, {26, 13, 7}, {26, 13, 8}, {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, 14, 35}, {26, 19, 6}, {26, 20, 13}, {26, 22, 17}, {26, 24, 5}, {26, 24, 13}, {26, 24, 21}, {26, 24, 22}, {26, 24, 24}, {26, 24, 26}, {26, 24, 31}, {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, 39}, {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, 34}, {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, 36, 38}, {26, 38, 8}, {26, 38, 14}, {26, 38, 26}, {26, 43, 22}, {26, 44, 15}, {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, 6, 27}, {27, 8, 35}, {27, 11, 7}, {27, 13, 27}, {27, 17, 31}, {27, 20, 14}, {27, 20, 42}, {27, 22, 38}, {27, 25, 20}, {27, 27, 27}, {27, 27, 44}, {27, 28, 20}, {27, 29, 42}, {27, 30, 6}, {27, 31, 22}, {27, 31, 28}, {27, 35, 31}, {27, 40, 19}, {27, 41, 45}, {27, 43, 42}, {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, 39}, {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, 34}, {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, 10, 13}, {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, 16, 23}, {28, 17, 35}, {28, 18, 11}, {28, 18, 30}, {28, 19, 33}, {28, 19, 34}, {28, 19, 40}, {28, 22, 22}, {28, 23, 28}, {28, 24, 17}, {28, 25, 4}, {28, 25, 5}, {28, 25, 7}, {28, 25, 9}, {28, 25, 13}, {28, 25, 21}, {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, 27, 23}, {28, 27, 42}, {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, 29, 10}, {28, 29, 39}, {28, 29, 41}, {28, 30, 18}, {28, 31, 12}, {28, 32, 4}, {28, 32, 5}, {28, 32, 6}, {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, 34, 24}, {28, 37, 7}, {28, 38, 8}, {28, 39, 9}, {28, 39, 27}, {28, 40, 39}, {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, 5, 45}, {29, 6, 32}, {29, 8, 4}, {29, 8, 38}, {29, 9, 14}, {29, 9, 41}, {29, 10, 31}, {29, 10, 32}, {29, 12, 17}, {29, 13, 35}, {29, 14, 14}, {29, 14, 16}, {29, 14, 29}, {29, 14, 32}, {29, 16, 14}, {29, 16, 16}, {29, 16, 29}, {29, 20, 31}, {29, 21, 42}, {29, 23, 13}, {29, 23, 27}, {29, 24, 8}, {29, 24, 29}, {29, 25, 21}, {29, 26, 20}, {29, 26, 42}, {29, 27, 43}, {29, 29, 14}, {29, 29, 16}, {29, 29, 29}, {29, 29, 32}, {29, 32, 14}, {29, 32, 29}, {29, 32, 32}, {29, 33, 32}, {29, 35, 19}, {29, 39, 41}, {29, 39, 43}, {30, 4, 20}, {30, 4, 23}, {30, 5, 25}, {30, 7, 14}, {30, 7, 28}, {30, 8, 11}, {30, 9, 22}, {30, 11, 4}, {30, 14, 33}, {30, 16, 36}, {30, 16, 38}, {30, 18, 21}, {30, 19, 25}, {30, 20, 44}, {30, 26, 25}, {30, 26, 32}, {30, 27, 37}, {30, 27, 39}, {30, 27, 44}, {30, 28, 14}, {30, 28, 36}, {30, 29, 9}, {30, 29, 27}, {30, 30, 30}, {30, 32, 11}, {30, 34, 33}, {30, 37, 9}, {30, 37, 38}, {30, 39, 34}, {30, 43, 45}, {30, 45, 23}, {31, 5, 18}, {31, 6, 43}, {31, 10, 5}, {31, 10, 40}, {31, 11, 37}, {31, 12, 28}, {31, 12, 40}, {31, 13, 5}, {31, 13, 20}, {31, 13, 22}, {31, 13, 43}, {31, 14, 21}, {31, 14, 42}, {31, 15, 41}, {31, 16, 20}, {31, 18, 24}, {31, 19, 6}, {31, 20, 37}, {31, 21, 4}, {31, 21, 8}, {31, 24, 34}, {31, 25, 33}, {31, 25, 44}, {31, 28, 21}, {31, 31, 31}, {31, 38, 44}, {31, 40, 6}, {31, 42, 4}, {31, 43, 8}, {31, 44, 25}, {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, 36}, {32, 5, 45}, {32, 6, 10}, {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, 8, 11}, {32, 8, 43}, {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, 35}, {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, 15, 6}, {32, 16, 5}, {32, 16, 12}, {32, 16, 13}, {32, 16, 16}, {32, 16, 32}, {32, 20, 11}, {32, 20, 12}, {32, 20, 19}, {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, 24, 38}, {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, 19}, {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, 30, 18}, {32, 31, 29}, {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, 35, 17}, {32, 36, 14}, {32, 36, 30}, {32, 39, 35}, {32, 41, 4}, {32, 42, 41}, {32, 44, 23}, {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}, {33, 4, 33}, {33, 10, 21}, {33, 12, 12}, {33, 13, 12}, {33, 14, 8}, {33, 15, 33}, {33, 17, 37}, {33, 19, 34}, {33, 21, 15}, {33, 21, 42}, {33, 26, 20}, {33, 27, 31}, {33, 28, 27}, {33, 29, 10}, {33, 30, 27}, {33, 30, 40}, {33, 32, 20}, {33, 32, 36}, {33, 33, 13}, {33, 36, 30}, {33, 38, 32}, {33, 38, 41}, {33, 39, 42}, {33, 39, 43}, {33, 43, 44}, {34, 4, 5}, {34, 6, 38}, {34, 7, 13}, {34, 8, 16}, {34, 9, 8}, {34, 10, 40}, {34, 11, 9}, {34, 12, 17}, {34, 12, 44}, {34, 14, 42}, {34, 15, 10}, {34, 15, 37}, {34, 17, 38}, {34, 20, 8}, {34, 20, 45}, {34, 22, 38}, {34, 24, 23}, {34, 25, 13}, {34, 25, 24}, {34, 27, 4}, {34, 29, 39}, {34, 30, 24}, {34, 32, 26}, {34, 32, 42}, {34, 33, 16}, {34, 35, 11}, {34, 35, 17}, {34, 40, 10}, {34, 43, 9}, {34, 43, 38}, {34, 44, 7}, {34, 44, 45}, {35, 4, 30}, {35, 7, 10}, {35, 14, 43}, {35, 17, 42}, {35, 21, 24}, {35, 22, 19}, {35, 23, 14}, {35, 25, 44}, {35, 26, 45}, {35, 27, 17}, {35, 28, 35}, {35, 37, 20}, {35, 38, 18}, {35, 39, 6}, {35, 41, 15}, {35, 42, 20}, {35, 42, 41}, {36, 4, 20}, {36, 4, 27}, {36, 4, 45}, {36, 5, 20}, {36, 6, 31}, {36, 6, 43}, {36, 7, 9}, {36, 7, 22}, {36, 12, 40}, {36, 14, 11}, {36, 16, 20}, {36, 18, 21}, {36, 20, 7}, {36, 21, 39}, {36, 22, 33}, {36, 25, 7}, {36, 29, 16}, {36, 30, 13}, {36, 30, 20}, {36, 30, 21}, {36, 35, 37}, {36, 36, 24}, {36, 37, 10}, {36, 38, 18}, {36, 38, 19}, {36, 40, 43}, {36, 41, 27}, {36, 44, 10}, {36, 44, 34}, {36, 45, 29}, {37, 5, 23}, {37, 5, 37}, {37, 8, 43}, {37, 11, 9}, {37, 11, 27}, {37, 12, 12}, {37, 14, 27}, {37, 15, 12}, {37, 15, 28}, {37, 17, 25}, {37, 18, 23}, {37, 21, 16}, {37, 23, 21}, {37, 26, 23}, {37, 27, 4}, {37, 29, 44}, {37, 31, 28}, {37, 41, 25}, {37, 41, 26}, {37, 42, 20}, {37, 45, 23}, {38, 6, 19}, {38, 8, 14}, {38, 9, 17}, {38, 10, 15}, {38, 11, 27}, {38, 13, 32}, {38, 13, 37}, {38, 15, 36}, {38, 16, 18}, {38, 17, 9}, {38, 17, 42}, {38, 22, 23}, {38, 23, 31}, {38, 26, 44}, {38, 27, 37}, {38, 33, 17}, {38, 33, 23}, {38, 34, 7}, {38, 34, 14}, {38, 36, 4}, {38, 36, 43}, {38, 37, 20}, {38, 38, 4}, {38, 41, 27}, {38, 43, 17}, {38, 43, 32}, {38, 44, 8}, {38, 44, 23}, {39, 4, 34}, {39, 7, 6}, {39, 8, 27}, {39, 10, 8}, {39, 12, 32}, {39, 14, 33}, {39, 17, 42}, {39, 20, 23}, {39, 20, 41}, {39, 23, 23}, {39, 24, 18}, {39, 24, 43}, {39, 26, 30}, {39, 28, 32}, {39, 28, 40}, {39, 29, 11}, {39, 32, 34}, {39, 34, 10}, {39, 38, 14}, {39, 38, 42}, {39, 40, 41}, {39, 42, 22}, {39, 42, 24}, {39, 44, 24}, {39, 44, 28}, {39, 45, 30}, {39, 45, 31}, {40, 5, 43}, {40, 7, 18}, {40, 11, 23}, {40, 11, 41}, {40, 12, 45}, {40, 14, 31}, {40, 17, 20}, {40, 17, 28}, {40, 18, 18}, {40, 20, 31}, {40, 20, 36}, {40, 20, 42}, {40, 21, 36}, {40, 23, 31}, {40, 25, 30}, {40, 26, 29}, {40, 29, 40}, {40, 30, 24}, {40, 30, 39}, {40, 31, 24}, {40, 31, 27}, {40, 32, 8}, {40, 33, 28}, {40, 35, 43}, {40, 36, 45}, {40, 38, 4}, {40, 38, 12}, {40, 38, 39}, {40, 41, 19}, {40, 45, 24}, {41, 6, 10}, {41, 9, 32}, {41, 12, 45}, {41, 13, 38}, {41, 16, 25}, {41, 18, 34}, {41, 18, 35}, {41, 21, 5}, {41, 21, 15}, {41, 26, 9}, {41, 27, 10}, {41, 28, 17}, {41, 29, 22}, {41, 30, 9}, {41, 31, 17}, {41, 32, 15}, {41, 33, 23}, {41, 35, 41}, {41, 38, 7}, {41, 39, 16}, {41, 39, 18}, {41, 39, 19}, {41, 40, 36}, {42, 4, 20}, {42, 4, 44}, {42, 5, 14}, {42, 12, 37}, {42, 14, 20}, {42, 15, 6}, {42, 19, 17}, {42, 19, 20}, {42, 19, 24}, {42, 19, 29}, {42, 19, 35}, {42, 19, 36}, {42, 22, 26}, {42, 28, 14}, {42, 30, 33}, {42, 30, 42}, {42, 33, 15}, {42, 33, 16}, {42, 33, 40}, {42, 35, 10}, {42, 36, 38}, {42, 37, 28}, {42, 38, 31}, {42, 39, 5}, {42, 39, 9}, {42, 39, 14}, {42, 41, 27}, {42, 41, 45}, {42, 42, 6}, {42, 43, 15}, {42, 43, 32}, {42, 45, 38}, {43, 4, 14}, {43, 4, 27}, {43, 4, 44}, {43, 8, 9}, {43, 10, 32}, {43, 12, 24}, {43, 12, 30}, {43, 16, 25}, {43, 20, 19}, {43, 21, 12}, {43, 23, 24}, {43, 23, 35}, {43, 24, 43}, {43, 25, 8}, {43, 27, 28}, {43, 28, 37}, {43, 32, 4}, {43, 33, 25}, {43, 34, 31}, {43, 35, 17}, {43, 38, 11}, {43, 38, 21}, {43, 38, 30}, {43, 39, 17}, {43, 39, 19}, {43, 39, 21}, {43, 40, 26}, {43, 42, 29}, {43, 43, 17}, {43, 44, 40}, {43, 45, 8}, {43, 45, 45}, {44, 4, 15}, {44, 9, 16}, {44, 9, 31}, {44, 9, 42}, {44, 10, 4}, {44, 10, 45}, {44, 11, 28}, {44, 12, 38}, {44, 17, 42}, {44, 18, 8}, {44, 18, 9}, {44, 18, 19}, {44, 20, 16}, {44, 20, 35}, {44, 20, 44}, {44, 21, 17}, {44, 23, 33}, {44, 24, 24}, {44, 27, 6}, {44, 27, 11}, {44, 27, 28}, {44, 27, 33}, {44, 28, 10}, {44, 29, 17}, {44, 30, 14}, {44, 31, 22}, {44, 31, 33}, {44, 31, 37}, {44, 32, 30}, {44, 36, 16}, {44, 36, 40}, {44, 37, 33}, {44, 38, 6}, {44, 38, 44}, {44, 40, 15}, {44, 41, 45}, {44, 43, 15}, {45, 4, 4}, {45, 4, 5}, {45, 4, 7}, {45, 4, 9}, {45, 4, 13}, {45, 4, 21}, {45, 4, 25}, {45, 4, 26}, {45, 4, 28}, {45, 4, 32}, {45, 4, 35}, {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, 8, 7}, {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, 10, 13}, {45, 10, 28}, {45, 12, 18}, {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, 14, 28}, {45, 17, 7}, {45, 17, 8}, {45, 17, 27}, {45, 17, 42}, {45, 21, 27}, {45, 23, 15}, {45, 23, 30}, {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, 27, 7}, {45, 28, 4}, {45, 28, 5}, {45, 28, 7}, {45, 28, 9}, {45, 28, 13}, {45, 28, 20}, {45, 28, 25}, {45, 28, 26}, {45, 28, 28}, {45, 28, 32}, {45, 28, 45}, {45, 29, 37}, {45, 30, 34}, {45, 30, 40}, {45, 30, 42}, {45, 31, 22}, {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, 33, 12}, {45, 36, 8}, {45, 37, 17}, {45, 37, 25}, {45, 44, 24}, {45, 45, 4}, {45, 45, 5}, {45, 45, 7}, {45, 45, 9}, {45, 45, 13}, {45, 45, 23}, {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}, }; int n_triplets = libsmm_acc_triplets.size(); printf("# libsmm_acc has %d blocksizes for multiplication\n", n_triplets); int max_m=0, max_n=0, max_k=0; for (int i=0; i<n_triplets; i++) { max_m = std::max(max_n, libsmm_acc_triplets[i][0]); max_n = std::max(max_m, libsmm_acc_triplets[i][1]); max_k = std::max(max_k, libsmm_acc_triplets[i][2]); } libsmm_acc_benchmark_t* handle; libsmm_acc_benchmark_init(&handle, test, max_m, max_n, max_k); int errors = 0; for (int i=0; i<n_triplets; i++) { 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); errors += libsmm_acc_benchmark(handle, m, n, k, 1, &launcher_mm, kernel_descr); } libsmm_acc_benchmark_finalize(handle); printf("# Done, found %d matrix-matrix multiplication errors.\n", errors); return errors; }