computing-systems-212 / Lab 4: Optimizing Caches / task1 / main.c
main.c
Raw
#include <stdlib.h>

#define DIM 500

extern void mxmult(volatile double *out, volatile const double *a, volatile const double *b);

int main(int argc, char **argv) {
    volatile double *out = (double *) malloc(DIM * DIM * sizeof(double));
    volatile double *a = (double *) malloc(DIM * DIM * sizeof(double));
    volatile double *b = (double *) malloc(DIM * DIM * sizeof(double));
    mxmult(out, a, b);
    return 0;
}