diff --git a/likwid/teste.sh b/likwid/teste.sh index 5c1a41e8a5efd749eed996d97c3db0cc9dd1a3d8..af1386ba8571068f95a7f7ebc77ea3b0851ab7cd 100755 --- a/likwid/teste.sh +++ b/likwid/teste.sh @@ -4,7 +4,7 @@ METRICA="FLOPS_DP" CPU=3 if [ "$1" = "-c" ]; then - rm -f *~ teste ${METRICA}*.log + rm -f *~ teste *.log exit fi @@ -13,6 +13,8 @@ CFLAGS="-I${LIKWID_HOME}/include -DLIKWID_PERFMON" LFLAGS="-L${LIKWID_HOME}/lib -llikwid" SCALING_FREQ="/sys/devices/system/cpu/cpufreq/policy${CPU}/scaling_governor" +likwid-topology -c -g >TOPOLOGIA.log + if [ -w ${SCALING_FREQ} ]; then echo "performance" > ${SCALING_FREQ} fi @@ -36,10 +38,10 @@ fi echo '' echo '-----------------------------------' -if [ -f FLOPS_DP_Otimiz.log ]; then +if [ -f FLOPS_DP_Otimiz.log -a -f TOPOLOGIA.log ]; then echo 'Configuração LIKWID: SUCESSO' echo '' - ls FLOPS_*.log + ls FLOPS_*.log TOPOLOGIA.log echo '' else echo 'Configuração LIKWID: FALHA'