#!/bin/bash

if [[ "$#" -ne 1 ]]; then
    echo "Provide experiment name as argument"
    exit;
fi
 

ROOT=/chalmers/users/croft/eda284/gem5_update
OUT_DIR="m5out/$1"

# encoded as follows: 1 = 128bits, 2 = 256bits, 4 = 512bits, 8 = 1024bits, 16 = 2048bits.
VECTOR_WIDTH_INDEX=16


$ROOT/build/ARM/gem5.opt -d ./$OUT_DIR $ROOT/configs/example/se.py \
			--param "system.cpu[:].isa[:].sve_vl_se = $VECTOR_WIDTH_INDEX" \
			--cpu-type=ex5_big \
			--caches \
			-c ./bins/matmul_0 \
					
