![]() |
|
|
#3620 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
11110100100002 Posts |
Does there exist an mfaktc build that will work on Google Colab in either its Ubuntu 18.04 or 20.04 VM incarnations currently, which appear unpredictably, usually 18.04? I'm getting Cudart version discrepancies with 10.0, or glibc / libstdc issues with the cuda 12.0 for linux mmfsktc build, and updating 18.04 does not resolve that issue for mmff so likely won't for mfaktc.
Downloadable from the mersenne.ca mirror would be ideal. Failing that, Colab specific build-in-situ step by step directions, that work as Colab currently is, and will be unlikely to be broken by Colab's migration in progress to Ubuntu 20.04 or other future changes. Same goes for mmff. Last fiddled with by kriesel on 2023-01-16 at 16:16 |
|
|
|
|
|
#3621 | |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24·3·163 Posts |
Quote:
It would be a shame if we all had to switch to the paradigm of reinstall the necessary tools and recompile for every notebook GPU session of a few hours or less, because the Colab environment can not be trusted to remain stable from one session to another. Colab VMs are 1 core 2 HT, and when there are GPUs available, the sessions time out around 3.5 hours, so some hopefully small percentage each time to rebuild the app would be a tax on the session's productivity. (Probably under 1%) Hmm, maybe we could compile in each Colab OS version once, and save the resulting executables, and detect which to launch by the output of !cat /etc/issue in future VM sessions. Rebuilding for different CUDA levels should not usually be necessary, both because the GPU models seem to be fairly stable on Colab or in personal gear, and because a single executable can be built to support many CC levels. CUDA 8 supported CC2.0-6.1, for example (or in other words, ancient Quadro 4000 to GTX10xx). |
|
|
|
|
|
|
#3622 | |
|
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/
24·199 Posts |
Quote:
And it's not so much the CUDA level, it's a mismatch between the driver and the library. |
|
|
|
|
|
|
#3623 |
|
Sep 2011
Germany
360510 Posts |
Some users getting:
Code:
./mfaktc.exe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./mfaktc.exe) |
|
|
|
|
|
#3624 |
|
Einyen
Dec 2003
Denmark
22×863 Posts |
Mfaktc with CUDA 11.6 compiled on colab:
mfaktc-CUDA11_6.zip This colab notebook downloads mfaktc and compiles it if you have your Google Drive. It creates the folder "mfaktc-compile" and download and extracts mfaktc, the files will be in: mfaktc-compile\mfaktc-0.21\mfaktc.exe mfaktc-compile\mfaktc-0.21\mfaktc.ini I did not make it correct the .ini file, but it does correct params.h to #define GPU_SIEVE_SIZE_MAX 2047 Code:
import subprocess
import os
from google.colab import drive
if not os.path.exists('/content/drive/My Drive'):
drive.mount('/content/drive')
%cd '/content/drive/My Drive'
!sudo mkdir mfaktc-compile
%cd mfaktc-compile
!wget https://www.mersenneforum.org/mfaktc/mfaktc-0.21/mfaktc-0.21.tar.gz
!sudo tar -xzvf mfaktc-0.21.tar.gz
!wget --user-agent="Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0" http://hoegge.dk/mersenne/Makefile-mfaktc.txt
%cd mfaktc-0.21
%cd src
!cp '/content/drive/My Drive/mfaktc-compile/Makefile-mfaktc.txt' ./Makefile
!sed -i 's/128/2047/g' params.h
!make
|
|
|
|
|
|
#3625 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2·112·47 Posts |
Quote:
It will help us all in the future when Google upgrades its VMs without warning us... Not that we have any right to complain. They are giving us this compute (in exchange for observing how Humans react to a Geeky changing situation)... |
|
|
|
|
|
|
#3626 |
|
Random Account
Aug 2009
Not U. + S.A.
3×953 Posts |
A long-time annoyance solved.
For several years I have had various programs fail to start and display a notification that needed file(s) are missing. mfaktc among others. The missing names always began with "api." I found the solution. What they needed was the C++ redistributable libraries. The one which solved the mfaktc problem on an old Windows 7 system was the 2015 edition. There are several on the M$ website. I had given up on trying to run several things over time because of this. For whatever program needs them, they must be registered in order to be visible. Thankfully, the installer does this. |
|
|
|
|
|
#3627 |
|
Jul 2003
27·5 Posts |
hi,
mfaktc v0.21 12.1 this is for wagstaff Last fiddled with by lalera on 2023-04-07 at 23:53 |
|
|
|
|
|
#3628 |
|
Random Account
Aug 2009
Not U. + S.A.
1011001010112 Posts |
These appear to be quite old except for the binary in "4a," going by the date stamps on the files.
Last fiddled with by storm5510 on 2023-04-08 at 14:36 |
|
|
|
|
|
#3629 |
|
Jul 2003
27·5 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mfakto: an OpenCL program for Mersenne prefactoring | Bdot | GPU Computing | 1724 | 2023-06-04 23:31 |
| gr-mfaktc: a CUDA program for generalized repunits prefactoring | MrRepunit | GPU Computing | 42 | 2022-12-18 05:59 |
| The P-1 factoring CUDA program | firejuggler | GPU Computing | 753 | 2020-12-12 18:07 |
| mfaktc 0.21 - CUDA runtime wrong | keisentraut | Software | 2 | 2020-08-18 07:03 |
| World's second-dumbest CUDA program | fivemack | Programming | 112 | 2015-02-12 22:51 |