Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created July 28, 2023 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hermann-SW/0ffb0146be687fb3eafd2b619b44366e to your computer and use it in GitHub Desktop.
Save Hermann-SW/0ffb0146be687fb3eafd2b619b44366e to your computer and use it in GitHub Desktop.
Simple bash script restarting cado-nfs.py until factorization completes successful (only needed for ARM bug)
#!/bin/bash
p=""
date
echo "======================="
./cado-nfs.py $1
while [ $? -ne 0 ]
do
date
echo "======================="
if [ "$p" == "" ]; then p=`ls /tmp/cado.*/*parameters* | head -1`; fi
./cado-nfs.py --parameters $p
done
date
echo "======================="
@Hermann-SW
Copy link
Author

Hermann-SW commented Jul 28, 2023

While "characters sometimes failed on ARM" is not fixed:
https://gitlab.inria.fr/cado-nfs/cado-nfs/-/issues/30068

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