![]() |
Newest PrimeNet interaction python program
Hello fellow Crunchers,
Cruncher Teal Dulcet (@tdulcet) and I (@danc2) have been working to expedite the computation of prime numbers. As a part of a [URL="https://www.mersenneforum.org/showthread.php?t=26522"]separate project[/URL], we decided to debug, optimize, and add features to the existing PrimeNet Python script that exists to interact with the [URL="http://v5.mersenne.org/v5design/v5webAPI_0.97.html"]GIMPS project's V5 API[/URL]. Please feel free to use, give feedback, and contribute to the project. Below are an unordered list of features. You may download the newest PrimeNet [URL="https://github.com/tdulcet/Distributed-Computing-Scripts/blob/master/primenet.py"]at this link[/URL]. [B]Features[/B][LIST][*]Builds on Loïc Le Loarer’s PrimeNet script with support for completely using the PrimeNet API.[*]Uses the PrimeNet API to get assignments if registered, which eliminates the password requirement and allows for the program to get much smaller Category 0 and 1 exponents, if it meets the other requirements ([url]https://www.mersenne.org/thresholds/[/url]).[*]Improved error handling of the PrimeNet API calls.[*]Automatically detects the CPU model for the [C]--cpu_model[/C] option.[*]Automatically registers the computer with PrimeNet if the user does NOT provide a password, which eliminates the [C]-r/--register[/C] option.[*]Added a new [C]--status[/C] option to output a status report and any expected completion dates for all assignments, similar to Prime95/MPrime. Includes the probability that each assignment is prime and the approximate number of decimal digits.[*]Added a new [C]--unreserve_all[/C] option to unreserve all assignments in the worktodo file using the PrimeNet API.[*]Added many other new options, including [C]-i/--workfile[/C], [C]-r/--resultsfile[/C], [C]-l/--localfile[/C], [C]--num_workers[/C], [C]-c/--cpu_num[/C] and [C]-L/--days_work[/C] (replaces [C]-L/--percent_limit[/C]). Run the [C]--help[/C] option for more information about these new options.[*]Sends the FFT length when reporting assignment progress so the user can get partial CPU credit.[*]Outputs more debug messages when using the [C]-d/--debug[/C] option. Debug messages now include the date and time. Output is much more consistent with Prime95/MPrime.[*]Outputs dates and numbers in locale format.[*]Outputs a message and bell sound before reporting prime results, similar to Prime95/MPrime.[*]Numerous bug fixes and performance improvements. Fixed many linting issues. Simplified script by using more Python modules. Removed lots of duplicate code. Updated all regular expressions to be more robust. Code formatted with autopep8.[*]When registering, it correctly sets the “application version string” on Windows and macOS and on 32-bit systems.[*]Uses the [C]PRPDC=[/C] prefix for PRP DC assignments (the 151 worktype) as Prime95/MPrime does, so it can differentiate PRP and PRP DC tests after they have been written to the worktodo file.[*]Supports the 160 and 161 worktypes if/when Mlucas or GpuOwl supports them.[*]Support for getting the 4 P-1 factoring worktype if/when Mlucas supports it.[*]Preliminary support for getting the 200 proof certification worktype if/when Mlucas or GpuOwl supports it.[*]Complete CUDALucas support using a new [C]-g/--gpu[/C] option. Easily extensible to support more GIMPS programs, such as GpuOwl.[*]Still supports Python 2.6 to 3.10. Supports Windows, macOS and Linux. Still supports Mlucas v19 and v18 (highly recommend that people use v19, as v18 does not output prime results to the results file).[*]Drop in replacement for any already setup instances of Loïc Le Loarer’s PrimeNet script.[*]The [URL="https://github.com/tdulcet/Distributed-Computing-Scripts/blob/master/mlucas.sh"]Mlucas [/URL]and CUDALucas Linux scripts ([URL="https://github.com/tdulcet/Distributed-Computing-Scripts/blob/master/cudalucas.sh"]1[/URL], [URL="https://github.com/tdulcet/Distributed-Computing-Scripts/blob/master/cudalucas2.sh"]2[/URL]) automatically download, setup and run it, including automatically setting most of the register options with the computer's system info.[/LIST] |
Nice! Will you be adding GPU72 support?
|
[QUOTE=Mark Rose;575915]Nice! Will you be adding GPU72 support?[/QUOTE]
No, it is primarily for primality testing. We are currently working on [URL="https://www.mersenneforum.org/showpost.php?p=573177&postcount=44"]adding support for GpuOwl[/URL]. However, if anyone wanted to add support for GPU72 and trial factoring, we would definitely accept a pull request. |
| All times are UTC. The time now is 02:35. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.