![]() |
![]() |
#1541 | |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
113558 Posts |
![]() Quote:
From the readme file for mfakto 0.15pre5: Code:
######### # 6 FAQ # ######### Q Does mfakto support multiple GPUs? A No, but using the commandline option "-d <GPU number>" you should be able to specify which GPU to use for each specific mfakto instance. Please read the next question, too. Q Can I run multiple instances of mfakto on the same computer? A Yes, and in most cases this is necessary to make full use of the GPU(s) if sieving with CPU. If the sieve is running on the GPU(default), one instance should fully utilize a single GPU. Mfakto help output I saved long ago: Code:
mfakto 0.15pre6-Win (64bit build) mfakto (mfakto 0.15pre6-Win) Copyright (C) 2009-2014, Oliver Weihe (o.weihe@t-online.de) Bertram Franz (bertramf@gmx.net) This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. This is free software, and you are welcome to redistribute it under certain conditions; see COPYING for details. Usage: mfakto [options] -h|--help display this help -d <xy> specify to use OpenCL platform number x and device number y in this program -d c force using all CPUs -d g force using the first GPU -v <n> verbosity level: 0=terse, 1=normal, 2=verbose, 3=debug -tf <exp> <min> <max> trial factor M<exp> from 2^<min> to 2^<max> instead of parsing the worktodo file -i|--inifile <file> load <file> as inifile (default: mfakto.ini) -st selftest using the optimal kernel per testcase -st2 selftest using all possible kernels options for debugging purposes --timertest test of timer functions --sleeptest test of sleep functions --perftest [<n>] performance tests, repeat each test <n> times (def: 10) --CLtest test of some OpenCL functions specify -d before --CLtest to test the specified device The todo.txt lists [CODE+DONE+ - -d g[/CODE]but does not include the string "-d c". There's a recommendation in the readme to use clinfo to get the platform & device number list for OpenCL devices on a system. Using the cpu for OpenCL trial factoring occurs to me as a waste. It could be running PRP or P-1 or LL. GPUs are much faster at TF. Last fiddled with by kriesel on 2019-10-30 at 08:00 |
|
![]() |
![]() |
![]() |
#1542 | |
Bemusing Prompter
"Danny"
Dec 2002
California
44578 Posts |
![]() Quote:
Does this mean mfakto would be unable to fully utilize something like this 10-GPU monster? https://exxactcorp.com/Exxact-TS4-264546-E264546 Or does OpenCL group no more than nine GPUs to a platform? |
|
![]() |
![]() |
![]() |
#1543 | |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3·5·17·19 Posts |
![]() Quote:
Code:
*devnumber %= 10; // use only the last digit as device number, counting from 1 Code:
devicenumber = strtol(argv[i+1],&ptr,10); There are mining rigs up to at least 13 PCIe slots. From what I've read, they are limited to several each of AMD and NVIDIA, so would run a blend of OpenCL and CUDA apps, such as mfaktO and mfaktC. As I recall, it's a driver limitation in each case, at less than 10 devices per driver. But if you'd send me a loaded system, I'd be glad to test it for you, at length. ![]() Last fiddled with by kriesel on 2019-10-31 at 15:34 |
|
![]() |
![]() |
![]() |
#1544 | |
Bemusing Prompter
"Danny"
Dec 2002
California
235110 Posts |
![]() Quote:
On that note, I wonder if it would be a good idea to split the platform and device numbers into separate parameters as a way to future-proof mfakto. If so, does anyone know how to test software on a hypothetical machine with 10+ AMD GPUs? I don't have access to any high-end hardware with AMD GPUs and AWS doesn't offer any such instances either. Is there a way to create multiple virtual devices and map them to a single physical device? Last fiddled with by ixfd64 on 2019-10-31 at 22:54 |
|
![]() |
![]() |
![]() |
#1545 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3×5×17×19 Posts |
![]()
In https://devtalk.nvidia.com/default/t...-cuda-devices/ someoene from NVIDIA states knowledge of people getting 10-16 NVIDIA gpus going in one system, and refers to system BIOS as a possible limitation. Also, dual-gpu cards count as two gpus, as on a K80.
Here, 11 cards, 18 NVIDIA gpus, on linux of some sort: https://devtalk.nvidia.com/default/t...-and-it-works/ https://community.amd.com/thread/158863 The GPU limit in Windows 7 is 32 GPUs per OS. Three are reserved for remote services and the primary desktop. Interesting, it looks like no such kind of hard limit is set in modern Linux system. Instead, there is a kernel configuration option named "Maximum number of GPUs" under Linux, and we can set it to an arbitrarily large value freely. |
![]() |
![]() |
![]() |
#1546 |
Bemusing Prompter
"Danny"
Dec 2002
California
1001001011112 Posts |
![]()
I managed to compile mfakto on Windows on my own and fixed a few issues along the way. I'll update the build instructions when I have time.
@kracker and preda: expect a pull request soon. ![]() |
![]() |
![]() |
![]() |
#1547 |
ἀβουλία
"Mr. Meeseeks"
Jan 2012
California, USA
32×241 Posts |
![]() |
![]() |
![]() |
![]() |
#1548 |
Bemusing Prompter
"Danny"
Dec 2002
California
2,351 Posts |
![]()
I used Visual Studio but did manage to compile mfakto using MinGW as well. I installed MSYS2 but ended up not using it after adding an OS check to the makefile.
For the record, the MinGW package bundled with Code::Blocks didn't work for me, but the official version from SourceForge did. |
![]() |
![]() |
![]() |
#1549 | ||||
Bemusing Prompter
"Danny"
Dec 2002
California
44578 Posts |
![]()
The changes are now live in the official mfakto repository. Thanks to kracker for reviewing my pull request.
![]() I want to update the rest of the documentation next. However, there are a few areas where I would like some input: Quote:
Quote:
Quote:
Quote:
Any feedback would be appreciated! |
||||
![]() |
![]() |
![]() |
#1550 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
3·5·17·19 Posts |
![]()
Yes. For example, https://www.mersenne.org/report_expo...exp_hi=&full=1 was the result of Factor=405000179,76,81. I generally do a TF in either mfaktc or mfakto from the current bit level to gputo72 limit before a P-1 test on an exponent. It takes a lot of P-1 tests at widely spaced exponents to arrive at a sense of limits versus gpu model and application, such as for determining usable limits and run time scaling for CUDAPm1 in
https://www.mersenneforum.org/showpo...72&postcount=8 https://www.mersenneforum.org/showpo...73&postcount=9 or the beginnings of the equivalent for GpuOwl in https://www.mersenneforum.org/showpo...5&postcount=17 and even more for a systematic trial in every million bin as in https://www.mersenneforum.org/showpo...82&postcount=7 Last fiddled with by kriesel on 2019-11-07 at 07:29 |
![]() |
![]() |
![]() |
#1551 |
Feb 2003
2×3×29 Posts |
![]()
Hi everybody!
I have a question about using mfakto (Linux) with Ubuntu 18.04. I started running mfakto about 5 years ago and had it comfortably running with the AMD Catalyst drivers. A couple of months ago, I upgraded to 18.04, and the Catalyst drivers were no longer supported, in favor of AMDGPU drivers. I've tried a few times to get mfakto running since then, but the best I've done is to get perftest running -- on the CPU instead of the GPU. Has anyone successfully gotten this working and have any tips about what I need to do beyond installing the drivers? Thanks! Code:
Ubuntu 18.04.3 LTS 4.15.0-66-generic Radeon R9 290X |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
gpuOwL: an OpenCL program for Mersenne primality testing | preda | GpuOwl | 2686 | 2021-01-14 21:32 |
mfaktc: a CUDA program for Mersenne prefactoring | TheJudger | GPU Computing | 3457 | 2020-12-28 05:11 |
LL with OpenCL | msft | GPU Computing | 433 | 2019-06-23 21:11 |
OpenCL for FPGAs | TObject | GPU Computing | 2 | 2013-10-12 21:09 |
Program to TF Mersenne numbers with more than 1 sextillion digits? | Stargate38 | Factoring | 24 | 2011-11-03 00:34 |