<commit_before>#!/bin/sh

SRC_DIR="/home/maltanar/sandbox/spmv-vector-cache/cold-miss-skip"
WORK_DIR="/home/maltanar/sandbox/build-verilator"
TARGET_DIR="/home/maltanar/sandbox/spmv-vector-cache/generated-systemc"
VERILATOR_DIR="/usr/share/verilator/include"

CACHE_DEPTHS="1024 2048 4096 8192 16384 32768 65536 131072"

export SYSTEMC_INCLUDE="/home/maltanar/systemc/include"
export SYSTEMC_LIBDIR="/home/maltanar/systemc/lib-linux64"


for depth in $CACHE_DEPTHS; do
  currentTargetDir="$TARGET_DIR/depth-$depth"
  echo "Now generating cache of depth $depth under $currentTargetDir"
  cd $SRC_DIR
  mkdir -p $WORK_DIR
  sbt "run --depth $depth --targetDir $WORK_DIR --backend v"
  cd $WORK_DIR
  verilator --sc ColdMissSkipVectorCache.v +define+SYNTHESIS+1 -Wno-lint
  mkdir -p $currentTargetDir
  cp -f obj_dir/*.cpp $currentTargetDir/
  cp -f obj_dir/*.h $currentTargetDir/
  cp -f $VERILATOR_DIR/verilated.cpp $currentTargetDir/verilated.cpp
  cd $SRC_DIR
  rm -rf $WORK_DIR
done
<commit_msg>fix target dir for cold miss skip cache generator script<commit_after>#!/bin/sh

SRC_DIR="/home/maltanar/sandbox/spmv-vector-cache/cold-miss-skip"
WORK_DIR="/home/maltanar/sandbox/build-verilator"
TARGET_DIR="/home/maltanar/sandbox/spmv-vector-cache/generated-systemc/cold-skip"
VERILATOR_DIR="/usr/share/verilator/include"

CACHE_DEPTHS="1024 2048 4096 8192 16384 32768 65536 131072"

export SYSTEMC_INCLUDE="/home/maltanar/systemc/include"
export SYSTEMC_LIBDIR="/home/maltanar/systemc/lib-linux64"


for depth in $CACHE_DEPTHS; do
  currentTargetDir="$TARGET_DIR/depth-$depth"
  echo "Now generating cache of depth $depth under $currentTargetDir"
  cd $SRC_DIR
  mkdir -p $WORK_DIR
  sbt "run --depth $depth --targetDir $WORK_DIR --backend v"
  cd $WORK_DIR
  verilator --sc ColdMissSkipVectorCache.v +define+SYNTHESIS+1 -Wno-lint
  mkdir -p $currentTargetDir
  cp -f obj_dir/*.cpp $currentTargetDir/
  cp -f obj_dir/*.h $currentTargetDir/
  cd $SRC_DIR
  rm -rf $WORK_DIR
done

{'fraction_non_alphanumeric': 0.12082912032355915, 'fraction_numerical': 0.04044489383215369, 'mean_word_length': 4.803519061583578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3289803', 'n_tokens_mistral': 836, 'n_tokens_neox': 742, 'n_words': 151}