#include #include "ImC/imc_kernel.h" #include "ImC/imc_extension.h" #define INPUT_SIZE 20 #define KERNEL_SIZE 6 #define OUTPUT_SIZE (INPUT_SIZE - KERNEL_SIZE + 1) static int input[INPUT_SIZE][INPUT_SIZE] = { [0 ... INPUT_SIZE - 1] = {[0 ... INPUT_SIZE - 1] = 2}}; static int kernel[KERNEL_SIZE][KERNEL_SIZE] = { [0 ... KERNEL_SIZE - 1] = {[0 ... KERNEL_SIZE - 1] = 2}}; void vConv2d() { // int IMC_REPEAT = 100; int IMC_REPEAT = imcBENCH_REPEAT_COUNT; int output[OUTPUT_SIZE * OUTPUT_SIZE]; // #pragma clang loop unroll(disable) for (int imc_repeat = 0; imc_repeat < IMC_REPEAT; imc_repeat++) { // #pragma clang loop unroll(disable) // for(int i=0; i