Skip to content

Commit

Permalink
Merge pull request #1222 from anarkiwi/consis
Browse files Browse the repository at this point in the history
restrict llvmpipe's vector width for consistency on different cpus
  • Loading branch information
anarkiwi authored Apr 10, 2024
2 parents d169d5a + f45cf72 commit 92dae4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_offline_consistent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ python -c "import numpy as np ; x = (np.random.uniform(-16384,16383,(20480000,))
rm -rf "$TMPDIR/ref"
mkdir "$TMPDIR/ref"

docker run -v "$TMPDIR:/gamutrf/data" -t iqtlabs/gamutrf gamutrf-offline --tune-step-fft=512 --db_clamp_floor=-150 --nfft=1024 --rotate_secs=0 "--inference_output_dir=/gamutrf/data/ref" "/gamutrf/data/input/$TESTFILE"
run_offline()
{
dir=$1
docker run -v "$TMPDIR:/gamutrf/data" -e LP_NATIVE_VECTOR_WIDTH=128 -t iqtlabs/gamutrf gamutrf-offline --tune-step-fft=512 --db_clamp_floor=-150 --nfft=1024 --rotate_secs=0 --inference_output_dir=/gamutrf/data/"$dir" /gamutrf/data/input/$TESTFILE
}

run_offline ref

for trial in {1..5} ; do
rm -rf "$TMPDIR/trial"
mkdir "$TMPDIR/trial"
docker run -v "$TMPDIR:/gamutrf/data" -t iqtlabs/gamutrf gamutrf-offline --tune-step-fft=512 --db_clamp_floor=-150 --nfft=1024 --rotate_secs=0 "--inference_output_dir=/gamutrf/data/trial" "/gamutrf/data/input/$TESTFILE"
run_offline trial
for image in $TMPDIR/ref/image*png ; do
baseimage="$(basename $image)"
testimage="$TMPDIR/trial/$baseimage"
Expand Down

0 comments on commit 92dae4f

Please sign in to comment.