Skip to content
Snippets Groups Projects
Commit 324b77ae authored by Milo Craun's avatar Milo Craun
Browse files

Can build all loops now

parent b4ba0d88
No related branches found
No related tags found
No related merge requests found
......@@ -103,3 +103,6 @@ The link to download can be found [here](https://developer.arm.com/-/media/Files
## LLoops
I removed all the prints from the livermore loops and moved the c sources up
Added a build script that builds all the programs in a dir for all configurations.
Had to add "-lm" to the build script to link the math library needed for some of the programs.
......@@ -8,18 +8,19 @@
ARM=~/aarch/bin/aarch64-none-linux-gnu-gcc
BASE="-static -O2"
LINK="-lm"
echo "Building x86"
echo "Vectorized"
gcc $BASE -ftree-vectorize -msse -fopt-info-vec-all $1.c -o $1-x86-vec
gcc $BASE -ftree-vectorize -msse -fopt-info-vec-all $1.c $LINK -o $1-x86-vec
echo "No vectorize"
gcc $BASE -msse $1.c -o $1-x86-nvec
gcc $BASE -msse $1.c $LINK -o $1-x86-nvec
echo "Building AArch64"
echo "Vectorized"
$ARM $BASE -ftree-vectorize -fopt-info-vec-all $1.c -o $1-arm-vec
$ARM $BASE -ftree-vectorize -fopt-info-vec-all $1.c $LINK -o $1-arm-vec
echo "No vectorize"
$ARM $BASE $1.c -o $1-arm-nvec
$ARM $BASE $1.c $LINK -o $1-arm-nvec
#!/usr/bin/bash
echo "Printing Failures"
for f in *.c
do
num=$(find -name "${f%.c}*" | wc -l)
if [ $num -eq 1 ]
then
echo $f
echo $num
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment