mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2023-01-16, 16:13   #3620
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

24·3·163 Posts
Default

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
kriesel is online now   Reply With Quote
Old 2023-01-16, 17:06   #3621
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

1E9016 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
Wrong thread, ...
That being said, it's very quick to compile if nvidia-cuda-dev is installed: even on an old two core/two thread machine it takes less than 15 seconds.
Oops re thread.
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).
kriesel is online now   Reply With Quote
Old 2023-01-16, 17:12   #3622
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24·199 Posts
Default

Quote:
Originally Posted by kriesel View Post
Oops re thread.
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).
18.04 probably won't last long as support ends for it at the end of April. Compiling multiple binaries seems like a simple approach.

And it's not so much the CUDA level, it's a mismatch between the driver and the library.
Mark Rose is offline   Reply With Quote
Old 2023-01-25, 16:41   #3623
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

5×7×103 Posts
Default

Some users getting:
Code:
./mfaktc.exe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./mfaktc.exe)
Is it possible to recompile on an older linux version and Glibc 2.29 or 2.31? cuda12 app is affected
rebirther is offline   Reply With Quote
Old 2023-02-15, 06:44   #3624
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×863 Posts
Default

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
ATH is offline   Reply With Quote
Old 2023-02-15, 18:56   #3625
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·112·47 Posts
Default

Quote:
Originally Posted by ATH View Post
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...
Thank you for this. Excellent work. I will likely use this in the future.

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)...
chalsall is offline   Reply With Quote
Old 2023-03-30, 00:08   #3626
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

B2B16 Posts
Default

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.
storm5510 is online now   Reply With Quote
Old 2023-04-07, 23:43   #3627
lalera
 
lalera's Avatar
 
Jul 2003

27×5 Posts
Default

hi,
mfaktc v0.21
12.1
this is for wagstaff
Attached Files
File Type: zip 4a.zip (355.4 KB, 34 views)
File Type: zip 4b.zip (566.3 KB, 31 views)

Last fiddled with by lalera on 2023-04-07 at 23:53
lalera is offline   Reply With Quote
Old 2023-04-08, 14:34   #3628
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

3×953 Posts
Default

Quote:
Originally Posted by lalera View Post
hi,
mfaktc v0.21
12.1
this is for wagstaff
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
storm5510 is online now   Reply With Quote
Old 2023-04-17, 22:08   #3629
lalera
 
lalera's Avatar
 
Jul 2003

10100000002 Posts
Default

Quote:
Originally Posted by storm5510 View Post
These appear to be quite old except for the binary in "4a," going by the date stamps on the files.
hi,
the program is quite that old
2015feb
lalera is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 14:43.


Fri Jul 7 14:43:23 UTC 2023 up 323 days, 12:11, 0 users, load averages: 1.44, 1.33, 1.13

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔