diff --git a/.gitignore b/.gitignore index 6dd4651c0b02338ab4f296ea337b3e2bde095142..b6f5165723cc35b4141bd258375dd6e84014c1c8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Makefile config.mk run_all.sh config.mk +config.mk diff --git a/run_gcc_compiler.sh b/run_gcc_compiler.sh deleted file mode 100755 index 22ea45fe3d73c141f0201ab0bc99475b64eeafa3..0000000000000000000000000000000000000000 --- a/run_gcc_compiler.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -#load armclang -#module load Generic-AArch64/RHEL/7/arm-hpc-compiler-19.3/armpl - -#load gcc -#module load GCC - -#load gcc -#module load Clang - -#echo `which armclang` -#echo `which gcc` -#echo `which clang` - -if [ "$#" -ne 1 ]; then - echo "Please specify which dataset to use."; - exit; -fi - - -#cd utilities -if test -f "output"; then - rm output -fi -if test -f "output_performance"; then - rm output_performance -fi -if test -f "datamining/correlation/Makefile"; then - perl utilities/clean.pl . -fi -# clean -#perl utilities/clean.pl . - -# generate makefiles -perl utilities/makefile-gen.pl $1 -cfg - -# generate headers -perl utilities/header-gen.pl . - -# compile -#perl ./run-all.pl .. | tee /dev/tty | grep -E 'vectorized|clang|gcc|#' | grep -vE '(^rm)|(^cd)' > ../vectorization_summary - -perl utilities/run-all.pl . $1 | tee output - -grep "Gflop/s" output | tee output_performance diff --git a/utilities/makefile-gen.pl b/utilities/makefile-gen.pl index 9de972ff0555acbfaf8f9c93b61225086fc3ad9e..d63885fe1a3e6da927c61933741bda0d3bc96ee0 100644 --- a/utilities/makefile-gen.pl +++ b/utilities/makefile-gen.pl @@ -151,7 +151,7 @@ open FILE, '>'.$TARGET_DIR.'/config.mk'; print FILE << "EOF"; asdfCFLAGS=/scratch/gem5_utils/libm5.a -march=armv8-a+sve -O3 -ffp-contract=fast -static -lpthread -DUSEM5OPS -I/scratch/gem5_utils -DPOLYBENCH_NO_FLUSH_CACHE -DREPEATKERNEL -CFLAGS=-march=armv8-a+sve -O3 -ffast-math -ffp-contract=fast -static -lpthread -DALTERSVELENGTH +CFLAGS=-march=armv8-a+sve -O3 -ffp-contract=fast -static -lpthread -DALTERSVELENGTH NOVEC_GCC=-fno-tree-vectorize NOVEC_CLANG=-fno-vectorize @@ -165,7 +165,7 @@ ARMCLANG=armclang ARMCLANGREPORTFLAGS= -Rpass=loop-vectorize CLANG=clang CLANGREPORTFLAGS= -Rpass=loop-vectorize -FCC=fccpx -NCLANG +FCC=fccpx -Nclang EOF