![]() |
![]() |
#23 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3·11·149 Posts |
![]()
There's a separate post in the Google Colab thread for setting that up.
Ewmayer has recently created a comprehensive guide, at https://mersenneforum.org/showthread.php?t=25601 Earlier: Prime95 suggested for setting up on a local Linux system, https://mersenneforum.org/showpost.p...5&postcount=76 and "also do a sudo apt install libncurses5" https://www.mersenneforum.org/showpo...postcount=2242 Ernst's needed packages list https://mersenneforum.org/showpost.p...postcount=2243 Top of this reference thread: https://www.mersenneforum.org/showthread.php?t=23391 Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2020-07-16 at 19:21 |
![]() |
![]() |
#24 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3×11×149 Posts |
![]()
GPU ram occupancy by Gpuowl v6.11-340 was observed using GPU-Z v2.33 on Windows 10 during performance of PRP iterations, for several scattered exponents. Idle gpu ram occupancy was entered for exponent 0. V6.11-364 was spot tested and observed essentially identical for the same exponent. At 100Mdigit, LL gpu ram usage was observed to be about 80% that of PRP. Note, no PRP proof computations have yet been observed for gpu ram usage. System ram usage for the process was observed to be less than gpu ram usage.
The regression fit was somewhat better plotted against FFT length than against exponent, not surprisingly. Top of this reference thread: https://www.mersenneforum.org/showthread.php?t=23391 Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2020-08-10 at 02:08 |
![]() |
![]() |
#25 | |||
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3·11·149 Posts |
![]()
The script requires Python 3. Programming environments are not standard parts of a default Windows install, so Python, perl, C etc may be absent. Python may have been already installed as part of a MS Visual Studio install, or separately.
Check whether your target system already has Python, and which version. On Windows 7: Start, Control Panel, Programs, Uninstall a Program, scroll down the list of installed programs to see if a version of Python is installed. Or on Windows 10: Settings, Apps, scroll down the list of installed programs to see if a version of Python is installed. If no Python 3.x is installed, follow the installation directions at https://docs.python.org/3/using/windows.html Test that it can be easily invoked from a command prompt. At a command prompt: python If python is included in the path environment variable, it will respond with something like Code:
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> If it does not recognize python, it might just be missing from the path environment string. On Windows 7: Fix the path in a permanent way so that Python can be run in any future command prompt: Start, Control Panel, System, Advanced System Settings, Environment Variables... In the System variables portion, if it's not present, append something like the following to add the location of the Python folder on your system to the path ;C:\Program Files\Python36 (Scroll down to Variable "Path", click the line, click "Edit...", scroll to and click on the right end of the existing path, paste in the necessary additional text, click OK. (This was necessary in my case because Python was not present in the path, and the cmd line setx /M did not work because the path was already beyond its 255-char limit, thanks to a lot of NVIDIA related content, and ordinary set can handle the long path length but is temporary, as is the command prompt box in which it is set.) Make a hi.py file to test the Python install, containing Quote:
Code:
>python hi.py Hello! > If Gpuowl's primenet.py and upload.py are not present, copy them in. For test purposes I put mine in a gpuowl working directory. If you have previously reported results in the results.txt file, now is a good time to move or remove them. (Otherwise they will generate "already reported" errors.) Try running primenet.py with no parameters: Quote:
Code:
Traceback (most recent call last): File "primenet.py", line 9, in <module> import requests ModuleNotFoundError: No module named 'requests' On Windows 7, Start, Control Panel, System and Security, System, Advanced system settings, Environment Variables..., scroll the system variables list. If there's no PYTHONPATH there, click New..., enter the Variable name PYTHONPATH, and enter a string corresponding to the location of requests.py as the Variable value. By experimentation, the value needed seems to be in my case, Quote:
When the script runs it will create subfolders __pycache__ and uploaded. It requires at least a username. Following is the beginning of a successful run. Code:
>python primenet.py -u primenet-uid Work type: 150 Will fetch ahead 2 tasks. Check every 3600 sec. User: primenet-uid Watched dirs: ./ Primenet password: primenet-pwd For reference, from gpuowl's readme.md, primenet.py's case-sensitive options are Code:
## Primenet.py Arguments -h, --help show this help message and exit\ -u USERNAME Primenet user name\ -p PASSWORD Primenet password\ -t TIMEOUT Seconds to sleep between updates\ --dirs DIR \[DIR ...\] GpuOwl directories to scan\ --tasks NTASKS Number of tasks to fetch ahead\ -w \{PRP,PM1,LL_DC,PRP_DC,PRP_WORLD_RECORD,PRP_100M\} GIMPS work type Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2020-08-10 at 02:30 |
|||
![]() |
![]() |
#26 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3×11×149 Posts |
![]()
Gpuowl now supports generation of PRP proof files. These require uploading to the server for verification. Preda has provided primenet.py and upload.py for performing the upload. Installing Python on every system to use them may be unappealing or impractical for some. Here are some alternatives. Note, upload the JSON results records first, then the corresponding proof files later.
The total number of different uploaders ought be limited to a manageable set for the server maintainers to support on that end. Top of this reference thread: https://www.mersenneforum.org/showthread.php?t=23391 Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2020-12-07 at 21:04 Reason: added uploader gpuowl version data; results.txt vs results.json.txt |
![]() |
![]() |
#27 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3·11·149 Posts |
![]()
There was a comment in the http://mersenneforum.org/showthread.php?t=22204 thread several months ago that 99% of gpuowl users ran it on Linux. This led me to think about what the real mix of gpuowl usage versus OS was, and where to find indications. I came up with several, which vary in mix indication, but seem to indicate about equal usage of Windows and Linux. These were examined in July, and I'm finally getting around to posting it now.
This post is not about bashing any participant, OS, etc. but about examining what usage distribution is by all practical means. All the following are limited by small or moderate statistical sample size. Within that limitation, they are consistent with gpuowl usage rates roughly comparable between Linux and Windows. 1) I asked the commenter for the basis of the statement. There was no response. I now believe it was hyperbole. 2) I started a poll. The results indicated 48% Linux, 57% Windows. https://www.mersenneforum.org/showpo...34&postcount=5 3) I reviewed the gpuowl thread for what users who posted there indicated about their own use. That showed 44% Windows-only, 37% Linux only, 10% both, 0% other, 10% undetermined (rounded to the nearest percent), or 54% Windows, 47% Linux after factoring in users of both (including Google colab users like myself as Linux usage). 4) I reviewed all the posts of Windows or Linux builds, as of mid June, and tabulated then how many views (downloads) were indicated as having occurred for each. There were many Windows builds posted, but only one for Linux. Average number of downloads per build post for Windows was ~31; for Linux, 16, a ratio of nearly 2:1. (Maximum download count per build was 121 then, in post 1877). The build view count if accurate is a lower bound on users, since others may build their own, and because kracker and I and perhaps others post builds, not download our own builds. There does seem to be a decline over time in the number of views (downloads) per Windows build posted. This could be reflective of a shift toward Linux or off Windows, or simply that downloads are cumulative. The scatter is quite substantial. One theory for it is that a moderator has modified some of the counts. Another is the long gap in builds prior to that post 1877 and another that had 90 views led to an unusually high number of updates using the build. Another is a bot or spider regularly retrieving it. Another is that some builds offer new features of significant value that will motivate a large number of downloads. In considering the nearly 2:1 ratio, note that Linux users are much more likely to do their own builds, for various reasons, including the large number of Linux variants, and the prevalence of zero cost build environments in Linux. 5) I asked James Heinrich (administrator of mersenne.ca and the GIMPS software download mirror) if he analyzed server logs for the download.mersenne.ca software mirror site. He indicated no, but sent me (anonymized) summary log data for May 2020 and oked sharing analysis of it. For gpuowl, this indicated downloads for Windows, but not Linux. The counts likely are contaminated somewhat by spiders and bots activity. This analysis seeems to indicate substantial Windows usage on all GIMPS gpu applications, as well as on prime95. 6) James Heinrich also provided anonymized summary log data for early June. From June 1 to June 15, 2020, there were 8 downloads of gpuowl for Linux, and 9 of gpuowl for Windows. Again, rough comparability and small sample size. The overall download rate of all apps was higher for Windows (40), than for Linux (22) 7) I asked Mihai Preda (gpuowl author) about any available statistics from the github repository for gpuowl. None were available. They would not reflect OS usage very well, since every time msys2 is used to create a Windows build, it is probably mistaken for Linux. And that one access results in dozens of downloads from builds posted to the forum. 8) Somewhat arbitrarily averaging as follows, the various measures above, combining 5 and 6 because they are the same measure for two different time periods, gives an aggregate of all samples available: Code:
Average of 2, 3, 4, (5+6)/2 Linux Windows 2 48 57 3 47 54 4 34 66 5 /2 0 50 6 /2 18 32 average 37 65 Little of the above indicates the impact of cloud computing. Paid cloud computing price structures heavily favor Linux. Free Google Colaboratory usage is Linux-only, including my own regular attempts to do P-1 or TF there. In fact that is why I list myself as using both Windows and Linux in the tabulation of users in the gpuowl thread. From the available sparse data we can conclude that the Linux and Windows contingents were roughly comparable. All the available measures indicated higher Windows adoption than Linux adoption. Mihai Preda made a wise choice to support both from the very first week of the original gpuowl announcement thread. There are reports of speed advantages using Linux with the ROCm driver, and a few features require that driver. It's likely to motivate some migration from Windows to Linux/ROCm over time. Unfortunately while WSL2 is bringing some gpu support, it's CUDA and DirectML, not OpenCL which gpuowl depends on. Maybe later. Top of this reference thread: https://www.mersenneforum.org/showthread.php?t=23391 Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2021-02-12 at 20:52 Reason: added link to gpuowl announcement thread; ROCm advantages; WSL2 |
![]() |
![]() |
#28 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
10011001101012 Posts |
![]()
At least the following, to varying degrees:
The gpu model has a great deal of effect. Radeon VII or RX6x00 preferred for performance/cost ratio. See https://www.mersenne.ca/cudalucas.php OS overhead in general: headless or at least low graphical activity on the gpu(s), few services, Linux Gpuowl version; a fairly recent one, v7.2-21 or v6.11-364 to 380 gpuowl performance is best with -use ASM where compatible. -use ASM I think requires OpenCL support and gpu driver support. The Windows Adrenalin driver does not support ASM. https://mersenneforum.org/showpost.p...postcount=1288 The Linux amdgpupro driver (compiler?) does not support ASM. https://mersenneforum.org/showpost.p...postcount=1292 The ROCm driver supports ASM as implemented by Preda in gpuowl. ROCm driver is only supported /available on Linux. https://github.com/RadeonOpenCompute/ROCm ROCm is not supported on Windows and does not appear to be a priority https://github.com/RadeonOpenCompute/ROCm/issues/390 "Failed ASM implies Windows. AMD's Windows OpenCL support for the Radeon VII is awful." Prime95, https://mersenneforum.org/showpost.p...&postcount=282 There's considerable variation in throughput versus fft length https://mersenneforum.org/showpost.p...postcount=2272 There's noticeable variation in performance versus driver version. For ROCM version, for better: https://mersenneforum.org/showpost.p...postcount=2043 or worse: https://mersenneforum.org/showpost.p...postcount=2316 https://mersenneforum.org/showpost.p...postcount=1089 Similar variation or more occurs in Windows driver version performance. I've seen up to 5+% drops for Windows Adrenalin driver "upgrades", or slight improvement. Other variables affecting performance include ambient temperature, fan curves, and power curve settings; some users reduce power and throughput to improve performance/cost ratio. Throughput is less than linear with power. Linux by Preda: https://mersenneforum.org/showpost.p...postcount=1623 Windows 10 by Kriesel: https://mersenneforum.org/showpost.p...postcount=1625 Also running two instances per gpu, as in https://mersenneforum.org/showpost.p...postcount=1937 Testing alternatives for same or similar fft lengths, and using the fastest that is sufficiently reliable Overclocking especially gpu ram, but only up to the point where it's still reliable. Explore those limits running PRP/GEC which will very reliably and quickly detect errors. Back off from detection of errors, down to where error rate is less than 1/week, and a little bit lower for stability in LL DC or P-1. There are reports of reliable memory clock rates up to 20% above nominal on some Radeon VIIs. Top of this reference thread: https://www.mersenneforum.org/showthread.php?t=23391 Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1 Last fiddled with by kriesel on 2021-02-12 at 22:23 Reason: added overclocking |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reference material discussion thread | kriesel | kriesel | 62 | 2020-12-12 08:57 |
Mersenne Prime GPU Computing reference material | kriesel | kriesel | 31 | 2020-07-09 14:04 |
CUDALucas-specific reference material | kriesel | kriesel | 9 | 2020-05-28 23:32 |
Mfaktc-specific reference material | kriesel | kriesel | 8 | 2020-04-17 03:50 |
CUDAPm1-specific reference material | kriesel | kriesel | 12 | 2019-08-12 15:51 |