Skip to content

Instantly share code, notes, and snippets.

@twobob
Created August 2, 2023 00:22
Show Gist options
  • Save twobob/2dc7db56027aeeca0fdd71bc05cc25ed to your computer and use it in GitHub Desktop.
Save twobob/2dc7db56027aeeca0fdd71bc05cc25ed to your computer and use it in GitHub Desktop.
make win64 && make winclang && make wingcc
for /L %i in (1,1,3) do @(for %x in (runmingw.exe rungcc.exe run.exe) do (set OMP_NUM_THREADS=4 && %x ../out/model110M.bin 0 0 "Once upon a time" 0))
for /f "tokens=4" %i in ('chcp') do @(chcp 65001 && @echo off && for /L %j in (1,1,3) do @(for %x in (runmingw.exe rungcc.exe run.exe) do @(set OMP_NUM_THREADS=4 && %x ../out/model110M.bin 0 0 "And away they went" 0)) && @echo on && chcp %i)
@twobob
Copy link
Author

twobob commented Aug 6, 2023

1..3 | ForEach-Object { 'runmingw.exe', 'rungcc.exe', 'run.exe' | ForEach-Object { $env:OMP_NUM_THREADS=4; & "./$_" '../out/model110M.bin' -t .8 -n 0 -p "Once upon a time" -o 1.0 -k 1 -f 0 -l 0 -b 1 -d inbox } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment