diff options
Diffstat (limited to 'TS/baselines/cpu')
-rw-r--r-- | TS/baselines/cpu/mprofile.h | 6 | ||||
-rwxr-xr-x | TS/baselines/cpu/run-perf.sh | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/TS/baselines/cpu/mprofile.h b/TS/baselines/cpu/mprofile.h index 120c225..bfaf052 100644 --- a/TS/baselines/cpu/mprofile.h +++ b/TS/baselines/cpu/mprofile.h @@ -10,5 +10,7 @@ //#define HBM_ALOC //#define RANDOM_DIAGS -int loadTimeSeriesFromFile (std::string infilename, std::vector<DTYPE> &A, int &timeSeriesLength); -int saveProfileToFile(std::string outfilename, DTYPE * profile, int * profileIndex, int timeSeriesLength, int windowSize); +int loadTimeSeriesFromFile(std::string infilename, std::vector < DTYPE > &A, + int &timeSeriesLength); +int saveProfileToFile(std::string outfilename, DTYPE * profile, + int *profileIndex, int timeSeriesLength, int windowSize); diff --git a/TS/baselines/cpu/run-perf.sh b/TS/baselines/cpu/run-perf.sh new file mode 100755 index 0000000..453b64b --- /dev/null +++ b/TS/baselines/cpu/run-perf.sh @@ -0,0 +1,8 @@ +#!/bin/zsh + +make -B NUMA=1 + +for i in $(seq 1 20); do + OMP_NUM_THREADS=1 perf stat record -o t1.${i}.perf -e ${(j:,:):-$(grep -v '^#' ../../../perf-events.txt | cut -d ' ' -f 1)} ./streamp_openmp inputs/randomlist10M.txt 256 4 4 + OMP_NUM_THREADS=4 perf stat record -o t4.${i}.perf -e ${(j:,:):-$(grep -v '^#' ../../../perf-events.txt | cut -d ' ' -f 1)} ./streamp_openmp inputs/randomlist10M.txt 256 4 4 +done |