![]() |
![]() |
#1 |
Dec 2019
3310 Posts |
![]()
Overview:
Hello fellow Crunchers, Cruncher Teal Dulcet (@tdulcet) and I (@danc2) have been working on a project to expedite the computation of prime numbers. This project offers users the ability to run GIMPS programs on Google Colab for primality testing. This offers a cost effective way to utilize GPUs and CPUs to contribute to GIMPS without forking any money out for expensive hardware. Users may also increase their contribution by upgrading to Google Colab Pro, which offers a higher usage limit for GPU and CPU utilization than that of the 12 hours in the free version. This project is facilitated by the following noteworthy additions to the GIMPS project: 1. GPU-And-CPU-Powered Colab Jupyter Notebooks Google Colab offers two free Jupyter notebooks for each Google Account, which can be run for a maximum of 12 hours per day without interruption. The GPU72 project previously created a notebook that can utilize assigned Nvidia GPUs and run mfaktc. Our CPU-powered notebook runs Prime95 and our GPU-powered notebook runs CUDALucas; with the added bonus of also using the CPU on that machine to run Prime95. On average, the time to finish a Category 4 First time LL test takes about 30 days when running CUDALucas on Google Colab. The results from these tests are highly reliable as Google Cloud uses ECC memory in its backend (source). Users can run multiple instances of each notebook while utilizing the same CUDALucas and/or MPrime binaries, but separate supporting files (e.g., worktodo). We also dynamically fix buffer overflows in CUDALucas, allowing it to utilize the P100 and V100 GPUs Google has to offer. Users interact with a form and run notebooks without the prerequisite need to know how to code. 2. Colab Autorun and Connect Browser Add-on/Extension Our Colab Autorun and Connect Firefox and Chrome/Chromium add-on/extension will automatically connect, reconnect and run the first cell of notebooks in Google Colab. It can be used to automatically run both our GPU and CPU notebooks when the user opens their browser or wakes their computer. It will soon be published to Addons.mozilla.org (AMO) and possibly the Chrome Web Store. 3. PrimeNet Python Script For Mlucas and CUDALucas Our script may also be used outside of these notebooks for other GIMPS projects. Notably, the script now uses the v5 API for all worktypes. We have also addressed a number of bugs from previous versions of the PrimeNet script. Differences from the GPU72 Project notebook 1. Compute work types that are eligible for cash research discovery award of up to $50,000. 2. Choices are not limited to the Trial Factorization work type. Choose from any LL worktype for the GPU and all LL and PRP work types (not recommended due to ~3.5 GiB for current first time tests; ~23% of Drive space) on the CPU. Change these worktypes later if desired. 3. Assignments are sent from/to the PrimeNet server, without needing a third party intermediary server. 4. One can save state for long running work types (e.g., LL, PRP, etc.) using Google Drive. 5. Automatically obtain and submit jobs with PrimeNet, with little configuration. 6. Can utilize both the GPU and CPU to run CUDALucas and Prime95 (the GPU notebook). 7. Open Source. 8. Builds CUDALucas directly from source code rather than precompiled binaries. 9. Colab GPUs are much faster at primality testing (LL/PRP) than trial factoring (TF)(source). 10. Easier setup than existing Notebook implementations. 11. Includes counts of all previously received CPUs and GPUs. How to Get Started Use the GPU notebook. Use the CPU notebook. Or visit the repository for more detailed instructions. Teal and I are available for further contact, questions, and feedback. Happy crunching! Last fiddled with by ewmayer on 2021-02-23 at 20:14 Reason: Fixed Jupyter-Notebooks-scripts link @OP request |
![]() |
![]() |
![]() |
#2 |
"Curtis"
Feb 2005
Riverside, CA
22·7·132 Posts |
![]()
I'm glad you did this project, and starting a new thread for it is the right thing to do.
Please, please don't post links to your new thread in every possibly relevant (or not-so-relevant) thread you can think of. I've removed all those other posts. Trust that users of this forum are smart enough to notice your new thread. Most users use the "new posts" feature in the menu bar at the top of the forum. Your topic will get plenty of notice there, and all your other links are redundant and clutter up that exact new-post feature. |
![]() |
![]() |
![]() |
#3 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
19·499 Posts |
![]()
There is a notebook that Chris of GPU72 set up. I am guessing it does what you think yours does. His automatically uses the CPU and GPU (when available). The thing is, transferring big files associated with primality tests (and storing them) is not real practical. So he has his set to do P-1 on the CPU.
https://www.mersenneforum.org/showthread.php?t=24875 https://www.mersenneforum.org/showpo...5&postcount=19 |
![]() |
![]() |
![]() |
#4 | |
"Teal Dulcet"
Jun 2018
29 Posts |
![]() Quote:
Note that users of the GPU72 notebook or any other notebooks can also use our browser add-on/extension. |
|
![]() |
![]() |
![]() |
#5 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
29×173 Posts |
![]()
Please do not encourage people to run LL first tests. We're trying to phase LL out entirely as routine first tests. Assignment rules may prevent issuance of LL first test work at some point in the future. PRP with GEC and proof generation is far superior for first tests:
Last fiddled with by kriesel on 2021-02-21 at 15:25 |
![]() |
![]() |
![]() |
#6 | ||
If I May
"Chris Halsall"
Sep 2002
Barbados
3×52×127 Posts |
![]() Quote:
![]() Thanks for the reference in your docs. I had a hoot designing and implementing my particular "proof-of-concept". And, yes. I made a conscious decision to only do Trial Factoring on the GPUs (although as you said, they are actually better at other work on some of the GPU offerings). I didn't want to get into the whole legal question of what is the situation if an MP was actually found. Also... I decided very early on not to require the attachment of a Drive. At the time, it wasn't as easy as it is now, and so didn't "scale" well. And so the tiny TF checkpoint files mapped well (only later were the much larger P-1 contexts added). Quote:
The Colab Terms of Service are very clear that automation is *not* acceptable for Notebook startup / restarting. They want a human in the loop (I suspect part of this is actually a sociology experiment... 9-) But, again... Nice work! I'm sure there are many out there who will use this. ![]() |
||
![]() |
![]() |
![]() |
#7 | ||||
Dec 2019
418 Posts |
![]()
Thank you for all the encouragement, congratulatory words, and constructive feedback. Below is a simple clarification on our intentions, thoughts, and motivations.
Quote:
Quote:
Quote:
Quote:
Note: The link in #1 of overview is incorrect (my fault). The link should be GPU-And-CPU-Powered Colab Jupyter Notebooks. Last fiddled with by danc2 on 2021-02-21 at 19:54 |
||||
![]() |
![]() |
![]() |
#8 |
May 2011
Orange Park, FL
2×443 Posts |
![]()
I used Chris' notebook setup successfully for several months (even signing up for the paid Colab Pro service), but Colab kept continually reducing the availability of service with no stated policy. It finally became so restricted that I just dumped the whole thing and cancelled the service.
|
![]() |
![]() |
![]() |
#9 | |
Dec 2019
3×11 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Dec 2019
3×11 Posts |
![]()
I realize we did not post any output or pictures, just links.
Since we have this dedicated thread, here is example output from a GPU notebook running the Tesla V100-SMX2-16GB (a $6,195.00 GPU according to Amazon). Last fiddled with by danc2 on 2021-02-22 at 06:25 |
![]() |
![]() |
![]() |
#11 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
19·499 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Google Diet Colab Notebook | Corbeau | Cloud Computing | 1140 | 2021-04-07 15:38 |
Primality testing of numbers k*b^n+c | Viliam Furik | Math | 3 | 2020-08-18 01:51 |
Alternatives to Google Colab | kriesel | Cloud Computing | 11 | 2020-01-14 18:45 |
Google Notebooks -- Free GPUs!!! -- Deployment discussions... | chalsall | Cloud Computing | 3 | 2019-10-13 20:03 |
a new primality testing method | jasong | Math | 1 | 2007-11-06 21:46 |