mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-01-04, 21:22   #3609
lalera
 
lalera's Avatar
 
Jul 2003

27×5 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
I assumed the versions posted in #3593 and/or #3595 supersede that. What does #3572 offer that the later two don't?
hi,
the difference is that it is no "blackbox" compilation
you have the complete code
lalera is offline   Reply With Quote
Old 2023-01-04, 21:31   #3610
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

10B516 Posts
Default

Quote:
Originally Posted by lalera View Post
you have the complete code
Oh, ok. I've included it now.
James Heinrich is offline   Reply With Quote
Old 2023-01-04, 21:53   #3611
lalera
 
lalera's Avatar
 
Jul 2003

27·5 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Oh, ok. I've included it now.
hi,
thank you!
lalera is offline   Reply With Quote
Old 2023-01-04, 22:21   #3612
lalera
 
lalera's Avatar
 
Jul 2003

27·5 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Oh, ok. I've included it now.
hi,
the download link does not work
lalera is offline   Reply With Quote
Old 2023-01-04, 22:42   #3613
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

7×13×47 Posts
Default

Quote:
Originally Posted by lalera View Post
the download link does not work
Wasn't playing nice with + special character in filename.
James Heinrich is offline   Reply With Quote
Old 2023-01-04, 22:53   #3614
lalera
 
lalera's Avatar
 
Jul 2003

10100000002 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Wasn't playing nice with + special character in filename.
hi,
now it works
thank you !
lalera is offline   Reply With Quote
Old 2023-01-04, 22:53   #3615
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

94710 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Thank you. I've never compiled a program before, have only used the ready-made executables available for download. Not unwilling to give it a shot, but it's hard to avoid the sense that this would be way above my pay grade.

Is there a comprehensive guide here to compiling mfaktc for Kubuntu (Ubuntu)?
Thankfully, recompiling turned out to be unnecessary. I had read up on the procedure for compiling a program and downloaded the elements required to do it, but after installing NVIDIA driver 510 and rebooting as Mark Rose instructed, out of curiosity I then launched the existing version of mfaktc.exe, and lo and behold it started running as if nothing had happened.

Bullet dodged.
Rodrigo is offline   Reply With Quote
Old 2023-01-04, 23:25   #3616
Luminescence
 
"Florian"
Oct 2021
Germany

3168 Posts
Plus

Quote:
Originally Posted by rebirther View Post
Can you pls also include cc6.1-cc9.0 and a short guide how did you compile it?
I've attached the big executable for CC6.0 up to CC9.0

It should run on any Pascal GPU onwards, even some rare ones like Jetson/Tegra devices.

To compile it:
  • Install the CUDA toolkit version you want to use and remember the directory where you put it.
  • Install Visual Studio. I use the the community version of Visual Studio 2022.
  • Install make via Chocolatey using the command choco install make in an administrative command promt or Powershell.
  • Edit the Makefile.win in the ...\mfaktc\src folder:
    Code:
    - CUDA_DIR should be set to the root directory of the toolkit folder
    - Remove /GL from the CFLAGS and CUFLAGS
    - Remove -ccbin="C:\..." from CUFLAGS
    - Remove /LTCG #/ltcg:pgo from the LFLAGS
    - Replace LIBS = $(CUDA_DIR)\lib\x64\cudart.lib with LIBS = $(CUDA_DIR)\lib\x64\cudart_static.lib
    - Edit the --generate-code arch=compute_xx,code=sm_xx flags to whatever you want to compile mfaktc for and remove lines that are unnecessary
  • Finally, search for "Developer Command Prompt for VS 2022" or "Developer Powershell for VS 2022" in your start menu and use the command cd to navigate into your mfaktc source folder.
  • Enter make -f Makefile.win all and it should (hopefully) generate the executable and two additional files in the ...\mfaktc directory

The zip file also includes the source directory and you can use my Makefile.win as a template.
Attached Files
File Type: zip mfaktc-0.21-win64-cuda12.0-CC60toCC90-2047.zip (1.65 MB, 67 views)
Luminescence is offline   Reply With Quote
Old 2023-01-05, 01:01   #3617
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

24×3×163 Posts
Default

Outstanding! Both here and in the MMFF thread.
kriesel is online now   Reply With Quote
Old 2023-01-05, 01:10   #3618
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·112·47 Posts
Default

Quote:
Originally Posted by kriesel View Post
Outstanding! Both here and in the MMFF thread.
+1.
chalsall is offline   Reply With Quote
Old 2023-01-07, 18:24   #3619
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

1110000101012 Posts
Default

As from the readme mfaktc/o cant run multiple GPUs on a single instance. It would be very helpful for BOINC if this can be changed in the future.
rebirther is offline   Reply With Quote
Reply



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:46 UTC 2023 up 323 days, 12:12, 0 users, load averages: 1.43, 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.

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