tdulcet / distributed-computing-scripts Goto Github PK
View Code? Open in Web Editor NEW🖧 Distributed Computing Scripts for GIMPS, BOINC and Folding@home
License: MIT License
🖧 Distributed Computing Scripts for GIMPS, BOINC and Folding@home
License: MIT License
Output from wget https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh -qO - | bash -s
Linux Kernel: 6.1.21+
Computer Model: Raspberry Pi Zero Rev 1.3
Processor (CPU): ARMv6-compatible processor rev 7 (v6l)
CPU Sockets/Cores/Threads: 1/1/1
Architecture: armv6l-linux (32-bit)
Total memory (RAM): 477 MiB (500 MB)
Total swap space: 0 MiB (0 MB)
Disk space: mmcblk0: 15,238 MiB (15GiB) (15,978 MB (16GB))
Computer name: compute1
Network name (SSID): collins2.4
Hostname: compute1
IPv4 address: wlan0: 192.168.0.45
MAC address: wlan0: 20:e5:2a:76:a4:96
Computer ID: e827c50d08394350878e5cdb82a1db73
Time zone: America/Chicago (CST, -0600)
Language: en_US.UTF-8
Bash Version: 5.1.4(1)-release
Terminal: xterm (Bitvise SSH Client)
Error from: nohup ~/prime95/primenet.py -w ~/prime95 --num-workers 1 >> primenet.out &
connectionpool.py: [MainThread 2024-03-08 11:46:37,341] DEBUG: Starting new HTTPS connection (1): www.mersenne.org:443
connectionpool.py: [MainThread 2024-03-08 11:46:38,232] DEBUG: https://www.mersenne.org:443 "POST /default.php HTTP/1.1" 200 8195
primenet.py: [MainThread 2024-03-08 11:46:38,285] DEBUG: No new results in './results.txt'.
primenet.py: [MainThread 2024-03-08 11:46:38,295] DEBUG: Found 0 < 2 assignments in './worktodo.txt', getting 2 new assignments
Traceback (most recent call last):
File "/home/pi/prime95/wrk0/../primenet.py", line 3320, in <module>
got = get_assignments(adir, cpu_num, progress, tasks)
File "/home/pi/prime95/wrk0/../primenet.py", line 2324, in get_assignments
assignments = primenet_fetch(cpu_num, num_to_get)
File "/home/pi/prime95/wrk0/../primenet.py", line 2238, in primenet_fetch
("cores", options.num_workers),
AttributeError: 'Values' object has no attribute 'num_workers'
Anything else you might need, just let me know
Oracle provides two always-free tier vm instances. After a public IP address has been assigned, anyone can SSH into the instance, begin prime95 on a tmux session (after installing with sudo yum install tmux
). The system information is below:
[opc@instance-20191110-1220 ~]$ wget https://web.cecs.pdx.edu/tdulcet/info.sh -qO - | bash -s --
Linux Distribution: Oracle Linux Server 7.7
Linux Kernel: 4.14.35-1902.6.6.el7uek.x86_64
Processor (CPU): AMD EPYC 7551 32-Core Processor
CPU Cores/Threads: 1/2
Architecture: x86_64 (64-bit)
Total memory (RAM): 971 MiB (1,018 MB)
Total swap space: 8,191 MiB (8.0GiB) (8,589 MB (8.6GB))
Graphics Processor (GPU): Device 1234:1111 (rev 02)
Computer name: instance-20191110-1220
Hostname: instance-20191110-1220
IP address: 10.0.2.3
Time zone: GMT (GMT, +0000)
Language: en_US.UTF-8
Virtual Machine (VM) hypervisor:kvm
PRP Proofs are not uploaded to Primenet server.
When --upload_proofs is in the command-line the script stops after job, when not specified the script works well.
I have run primenet.py with --no_more_work but still it is getting new exponents to compute.
Please fix.
I am running the script from my Google Colab, and it seems gpuowl did not successfully installed.
This is the output that I think is the problem
Downloading, building and setting up GpuOwl
PrimeNet User ID: <my_id>
Computer name: <my_comp_name>
Type of work: 150
Idle time to run: 10 minutes
System idle time for all processor (CPU) threads since the last boot: 23 minutes 2 seconds
Number of platforms 0
Error: This computer does not have an OpenCL platform
sed: can't read gpuowl/1/gpuowl: No such file or directory
sed: can't read gpuowl/1/gpuowl: No such file or directory
sed: can't read gpuowl/1/gpuowl: No such file or directory
sed: can't read gpuowl/1/gpuowl: No such file or directory
Registering computer with PrimeNet
/bin/bash: line 0: cd: gpuowl/1: No such file or directory
Downloading and setting up Prime95
and continues...
And my colab instance info is this
Graphics Processor (GPU): Tesla T4
Linux Distribution: Ubuntu 20.04.5 LTS
Linux Kernel: 5.10.147+
Computer Model: Google Google Compute Engine
Processor (CPU): Intel(R) Xeon(R) CPU @ 2.20GHz
CPU Sockets/Cores/Threads: 1/1/2
Architecture: x86_64 (64-bit)
Total memory (RAM): 12,985 MiB (13GiB) (13,616 MB (14GB))
Total swap space: 0 MiB (0 MB)
Disk space: sda: 83,968 MiB (82GiB) (88,046 MB (89GB))
Computer name: 2710e45cb6ad
Hostname: 2710e45cb6ad
IPv4 address: eth0: 172.28.0.12
MAC address: eth0: 02:42:ac:1c:00:0c
Computer ID: 45b5db723f224a57a4852b1acb1b61d5
Time zone:
Language: en_US.UTF-8
Virtualization container: docker
Virtual Machine (VM) hypervisor:kvm
Bash Version: 5.0.17(1)-release
bash: line 171: /dev/tty: No such device or address
bash: line 172: /dev/tty: No such device or address
bash: line 173: /dev/tty: No such device or address
Terminal: xterm-color
Python 3.9.16
Is this a problem with my assigned GPU?
The Prime95 installation works prerfectly by the way, and is able to get task from PrimeNet.
But when I restarted my instance and run it again, the output seems to have stuck in the Prime95 menu:
Prime95 is already downloaded
Optimizing Prime95 for your computer
This may take a while…
Skipped
Setting up Prime95
spawn ./mprime -m -A1
[Main thread Apr 19 00:52] Mersenne number primality test program version 30.8
[Main thread Apr 19 00:52] Optimizing for CPU architecture: Core i3/i5/i7, L2 cache size: 256 KB, L3 cache size: 55 MB
Main Menu
1. Test/Primenet
2. Test/Workers
3. Test/Status
4. Test/Continue
5. Test/Exit
6. Advanced/Test
7. Advanced/Time
8. Advanced/P-1
9. Advanced/ECM
10. Advanced/Manual Communication
11. Advanced/Unreserve Exponent
12. Advanced/Quit Gimps
13. Options/CPU
14. Options/Resource Limits
15. Options/Preferences
16. Options/Torture Test
17. Options/Benchmark
18. Help/About
19. Help/About PrimeNet Server
Your choice:
And when I try to stop the Colab cell, it outputs like this:
Skipped
Setting it to start if the computer has not been used in the specified idle time and stop it when someone uses the computer
Skipped
Starting PrimeNet
/bin/bash: line 0: cd: gpuowl/1: No such file or directory
nohup: redirecting stderr to stdout
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
Waiting for 'worktodo.ini' access...
and on and on....
What is the problem here? I really interested in prime hunting and really appreciate this script! Thanks for your time!
This project, I hypothesize, may be run on a Jupyter Notebook inside IBMs Supercomputer -- Watson. There is a limited time of computing time, but as with Google's Colab, work can be saved.
Article Explaining Availability to General Public: https://www.eteknix.com/access-ibms-watson-supercomputer-free/
Specs of Watson
'primenet.py: send_progress: Tue 02 Nov 2021 03:40:48 AM CET Cannot update, the registration is not done'
which parameters needed for registration ?
The output of lspcu
on M2 CPU contains Thread(s) per core
twice. As a result, the HP
variable has a newline in it: 1\n1
. That leads to many error messages in the script (some are very confusing). A workaround is to apply sort -u
to the sed output in the HP assignment, but it would still break if the values are different. Perhaps the newline can be detected and reported. I'm attaching the complete output of lscpu
.
lscpu-out.txt
Hi
md5sum in the file cudalucas.sh is SUM="424ca4c9dfcfc8f16de1408ef9d970c5".
According to https://www.mersenneforum.org/mayer/README.html#download md5 checksum = a3ab997df7d7246b29e47a851088d2a5 for mlucas_v18.txz.
Could you check, please?
Thanks
Hi, I was interested in using the BOINC script to contribute to the Seti@Home project.
Your setup instructions are pointing to:
https://raw.github.com/tdulcet/Distributed-Computing-Scripts/master/boinc.sh
But your scriptname is in fact bonic.sh.
Questions:
Does it work on Centos 7?
What URL should I provide for Seti@Home? This: https://setiathome.berkeley.edu/ ?
Regards Wim.
primenet.py -u selroc -g -w /home/sel/work0 -i worktodo.txt -T 150 -t 3600 -n 1
Proof file exponent is M112807829
MD5 of “/home/sel/work0/proof/112807829-8.proof” is 801854c154dd6f4154277400a5d47bb4
Filesize of “/home/sel/work0/proof/112807829-8.proof” is 126,908,869
Proof “/home/sel/work0/proof/112807829-8.proof” already uploaded
{'error_status': 409, 'error_message': 'Conflict', 'error_description': 'Proof already uploaded'}
Traceback (most recent call last):
File "/mnt/SELROC_COMPUTE/gpucomputing/primenet.py", line 2246, in <module>
uploadProofs(dir)
File "/mnt/SELROC_COMPUTE/gpucomputing/primenet.py", line 615, in uploadProofs
os.rename(filename, os.path.join(archive, entry))
OSError: [Errno 18] Invalid cross-device link: '/home/sel/work0/proof/112807829-8.proof' -> '/nfs/PROOF_STORE/112807829-8.proof'
(Note: This "Issues" post is under construction! I'm starting school, so I wanted to post my findings somewhere, with the plan to be periodically updated. I hope this is okay, Teal).
There are some opportunities to run your scripts under Google Colab, Teal.
Opportunities
!sudo apt-get update # optional
!sudo apt-get dist-upgrade -y # optional
!wget https://raw.github.com/tdulcet/Distributed-Computing-Scripts/master/mprime.sh -q
!sed -i '/^nohup / s/^/# /' mprime.sh # Do not start MPrime
!sed -i '/^crontab / s/^/# /' mprime.sh # Do not create a cronjob
!bash -- mprime.sh danc2 GCodeLabs
!wget https://raw.github.com/tdulcet/Distributed-Computing-Scripts/master/mprime.sh -qO - | bash -s -- danc2 GCodeLabs
!pkill mprime # to kill the process and start it manually (see note below)
!cd /content/mprime/ && ./mprime -d # -d is optional, but good to check to see if its working.
!ps -al | grep mprime
Note: I use pkill because 1) killall is not installed and 2) GIMPS has yet to receive any info back from these machines and I wanted to use the -d
command to see output.
Using GPU
This must be done within a 12-hour period
Using a TPU
This step would require crafting our own Prime Computation machine, likely in Python, to make use of Google Colabs TPU power.
To-Do
cron
(sudo apt-get install cron
) into the machine enables them to run without a browser window being opened. (My theory is the machines are ephemeral and get reused once not in use, even if a cron job is working, but I need to verify).CUDALucas
, a workload can complete in the 12-hour period maximum for a GPU workload (or if the machine can resume GPU work after whatever interval Google requires is over without previous work being lost).Kaggle offers a GPU for 30 hours per week to train models. The CPU has no limit. Instructions below to follow...
Synopsis: to allow multiple job types with one script run.
Hypothetical steps:
The graph at the bottom of this page can be used to infer exponents that are probabilistically likely to be prime (i.e., by using the standard deviation of the graph -- using LibreCalc is one suggestion by Teal).
If anyone wanted to pick this idea up and implement it, I give that opportunity freely here... I'm busy with school, so don't know when I will get back to it realistically.
Standard Deviations
- Gimp Numbers: 26303282.12
- All Mersenne Primes: 21923345.62 ~= 21923346
- Last 10 Mersenne Primes: 21477597.23
Calculating range of primes
Last Exponent discovered to involve a Mersenne Prime: 82589933
Last Exponent + STD DEV of All Mersenne Primes*: 82589933 + 21923346 = 104,513,279
Thus, all exponents in the range 82,589,933 - 104,513,279 should be explored first and foremost.
I seem to have trouble running the gpu script on colab, seems like maybe an upstream issue in gpuowl (a similar issue is here: preda/gpuowl#223 ). The CPU script works great in the meantime! Any suggestions?
20231120 20:41:27 GpuOwl VERSION v7.2.1-8-g3567e66
20231120 20:41:27 GpuOwl VERSION v7.2.1-8-g3567e66
20231120 20:41:27 config: -user Axis4383 -cpu Colab-BProductions
20231120 20:41:27 config: -mprimeDir ../../mprime_gpu -log 100000 -unsafeMath -use ROE2 -device 0 -maxAlloc 972M -proof 9
20231120 20:41:27 device 0, unique id ''
20231120 20:41:27 Colab-BProductions 120218741 FFT: 6.50M 1K:13:256 (17.64 bpw)
20231120 20:41:27 Colab-BProductions Exception gpu_error: clGetPlatformIDs(16, platforms, (unsigned *) &nPlatforms) at src/clwrap.cpp:71 getDeviceIDs
20231120 20:41:27 Colab-BProductions Bye
^C
Gracefully exiting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.