Skip to Content.
Sympa Menu

cado-nfs - [Cado-nfs-discuss] Discrete Log modulo small primes

Subject: Discussion related to cado-nfs

List archive

[Cado-nfs-discuss] Discrete Log modulo small primes


Chronological Thread 
  • From: Nimrod Aviram <nimrod.aviram@gmail.com>
  • To: cado-nfs-discuss@lists.gforge.inria.fr
  • Subject: [Cado-nfs-discuss] Discrete Log modulo small primes
  • Date: Thu, 5 Dec 2019 11:27:03 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=nimrod.aviram@gmail.com; spf=Pass smtp.mailfrom=nimrod.aviram@gmail.com; spf=None smtp.helo=postmaster@mail-lj1-f171.google.com
  • Ironport-phdr: 9a23:76jsnRUV6XUTwdezJyEOqhTHch3V8LGtZVwlr6E/grcLSJyIuqrYbBaHt8tkgFKBZ4jH8fUM07OQ7/m7HzVQuN3Z7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrowjdrNQajIh/Jqo+1hfErWZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhNww4DaboKbOudgcKzBZt4VX3ZNU9xLWiBdHo+xbY0CBPcBM+ZCqIn9okMDowO/BQmpHuPvzSJHjWLq0K0k0uQhCxvJ3Ak9FN8JtnTUrdD1NL0VUe+o1qXH1yvDb/JM2Tjn7YjFaR8hofSWUrJxdcrd01UgFwTAjliJr4HuIj2b1uMIs2eB7upgU/qii3Yppg1tuDSv3cIshpHSiYMb1l/I7z15wIIzKNalS0B7ecapHIVMuyyeLYd7QcMvT3t2tComybAKo4O3cSoXxJkh2hXRceaIc5KS7RLmTOuRISl3hHZieL+ngha960mgyunlWsmw0lZGszNJktfRun0PyhDf8MeHSvx6/keu3TaAyRrf5f1DIUAxjabbKpghzaAslpcLr0jPAiv7lF/1gaKWbEko5PSk5uf9brn7pJKQKpd4igTkPaQvnsy/D/44Mg8LX2WD/+S81bjj/Vf+QLpXlPE5iLfZsJHAJcsBo660GABV0oM55Ba+CzeqysgXnX4CLF5dYhKIk5DpO03SIPD/Ffqwn06jnypsx/zfOL3hDI7NImHen7fgZrZy91NcyBEozd1E45JUC6oBIO7oWkPru9zYABg5Mxa7w+n5Etl914UeWXiOAqCDKq/Sv0WItaoTJLyHbYMS/TDzML0p5uXlkGQisVscZrWym5QZb2q3E7JnJV+YaDzimIQvC2AP6yw/SfbthBWrTz9JbnP6C6Q94ys8BMSvE4bZT4WFj7mI3SP9FZpTMDMVQmuQGGvlIt3XE8wHbzifd5c4z240EIO5Qopk7imA8Q/3z709cLjR8ywc8JbhjZ17vrKK0x418jNwAoKW1GTfFzglzFNNfCc/2eVEmWI4z16C1aZihPkBTI5c4vpIVkExMpuOlrUmWeC3YRrIe5KycHjjWs+vWGhjQdc4wttIaEF4SY2v
  • List-archive: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/>
  • List-id: A discussion list for Cado-NFS <cado-nfs-discuss.lists.gforge.inria.fr>

Dear CADO-NFS Team,

Thanks for making this awesome piece of software available! :-)
I'm trying to use CADO-NFS to compute discrete log modulo relatively small primes.
e.g.:
./cado-nfs.py -dlp -p parameters/dlp/params.p30 -ell 891795089922643 target=108133651678831697130 152596841426843289017
results in a "no hint file found for p21" error.

I've also tried to manually patch the code to use the p30 hint file in this case, and got the error at the end of this mail.

What would be the easiest way to add support for discrete log modulo smaller primes to CADO-NFS?

(This is on cado-nfs 2.3.0, built simply with "make". Please let me know if I should include more build information.)

thanks a lot,
Nimrod

=========
The long error when using the p30 hint file:

Warning:Command: Process with PID 9692 finished with return code 2
Error:Linear Algebra: Program run on server failed with exit code 2
Error:Linear Algebra: Command line was: /localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/bwc.pl :complete 'thr=8' 'm=4' 'n=2' 'nullspace=right' 'matrix=/tmp/cado.ljtgcvwc/p30.sparse.bin' 'rhs=/tmp/cado.ljtgcvwc/p30.sm' 'prime=891795089922643' 'wdir=/tmp/cado.ljtgcvwc/p30.bwc' 'cpubinding=/localwork/false_start/cado-nfs-2.3.0/parameters/misc/cpubinding.conf' 'cantor_threshold=2048' > /tmp/cado.ljtgcvwc/p30.bwc.stdout.1 2> /tmp/cado.ljtgcvwc/p30.bwc.stderr.1
Error:Linear Algebra: Stderr output follows (stored in file /tmp/cado.ljtgcvwc/p30.bwc.stderr.1):
b'#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/prep nullspace=right mpi=1x1 thr=2x4 prime=891795089922643 interval=200 cpubinding=/localwork/false_start/cado-nfs-2.3.0/parameters/misc/cpubinding.conf m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc matrix=/tmp/cado.ljtgcvwc/p30.sparse.bin rhs=/tmp/cado.ljtgcvwc/p30.sm n=2\nWriting balancing data to p30.sparse.2x4.bin\n#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/secure nullspace=right mpi=1x1 thr=2x4 prime=891795089922643 interval=200 cpubinding=/localwork/false_start/cado-nfs-2.3.0/parameters/misc/cpubinding.conf m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc matrix=/tmp/cado.ljtgcvwc/p30.sparse.bin n=2\n#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/krylov nullspace=right mpi=1x1 thr=2x4 prime=891795089922643 interval=200 cpubinding=/localwork/false_start/cado-nfs-2.3.0/parameters/misc/cpubinding.conf m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc matrix=/tmp/cado.ljtgcvwc/p30.sparse.bin n=2 ys=0..1 start=0\n#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/krylov nullspace=right mpi=1x1 thr=2x4 prime=891795089922643 interval=200 cpubinding=/localwork/false_start/cado-nfs-2.3.0/parameters/misc/cpubinding.conf m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc matrix=/tmp/cado.ljtgcvwc/p30.sparse.bin n=2 ys=1..2 start=0\n#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/acollect nullspace=right prime=891795089922643 interval=200 m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc n=2 --remove-old\n#############################################################################\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/plingen_pz lingen_threshold=10 lingen_mpi_threshold=10 split-output-file=1 afile=A0-2.0-400 ffile=F mpi=1x1 prime=891795089922643 m=4 wdir=/tmp/cado.ljtgcvwc/p30.bwc rhs=/tmp/cado.ljtgcvwc/p30.sm n=2\nERROR: all solutions have zero contribution on the RHS vectors -- we will just output right kernel vectors (maybe use allow_zero_on_rhs ?)\n/localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/plingen_pz: exited with status 1\naborted on subprogram error at /localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/bwc.pl line 512, <F> line 1.\n\t...propagated at /localwork/false_start/cado-nfs-2.3.0/build/ssd/linalg/bwc/bwc.pl line 1406, <F> line 1.\n'
Traceback (most recent call last):
  File "./cado-nfs.py", line 122, in <module>
    factors = factorjob.run()
  File "./scripts/cadofactor/cadotask.py", line 5429, in run
    last_status, last_task = self.run_next_task()
  File "./scripts/cadofactor/cadotask.py", line 5504, in run_next_task
    return [task.run(), task.title]
  File "./scripts/cadofactor/cadotask.py", line 4106, in run
    raise Exception("Program failed")
Exception: Program failed




Archive powered by MHonArc 2.6.19+.

Top of Page