mersenneforum.org mfaktc: a CUDA program for Mersenne prefactoring
 Register FAQ Search Today's Posts Mark Forums Read

2020-08-24, 05:26   #3301
kriesel

"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

4,583 Posts

Quote:
 Originally Posted by DrobinsonPE here is the output of ls -l from the folder mfaktc/mfaktc021 -rw-rw-rw- 1 user user 18845 Feb 17 2015 Changelog.txt -rw-rw-rw- 1 user user 35147 Feb 17 2015 COPYING -rwxrwxr-x 1 user user 2719952 Aug 22 20:40 mfaktc.exe drwxrwxr-x 2 user user 4096 Sep 4 2019 src -rw-rw-r- - 1 user user 55 Aug 22 20:55 worktodo.txt
No mfaktc.ini?!

2020-08-24, 14:26   #3302
storm5510
Random Account

Aug 2009
U.S.A.

22·13·31 Posts

Quote:
 Originally Posted by kriesel No mfaktc.ini?!
Linux can be such a pain in the keister. Does the Linux version of mfaktc not have mfaktc.ini in its archive? I thought it did...

2020-08-24, 14:40   #3303
DrobinsonPE

Aug 2020

22·13 Posts

Quote:
 Originally Posted by kriesel No mfaktc.ini?!
You caught that. Yes, I realized that after the fact as well and that was a stupid mistake I made out of frustration on the 22nd. When the new compiled mfaktc did not work, I started to delete the new folder (mfaktc021) I had created and then stopped. I must not have pulled the .ini file back out of the trash. That did compromise the testing on the 23rd.

However, mfaktc does now work with the .ini file and the worktodo file located in my user folder (also called Home in Linux Mint)

 2020-08-24, 15:38 #3304 chris2be8     Sep 2009 23×239 Posts I think the key is that mfaktc.ini and worktodo.txt have to be in the folder where you run the command. Which does not have to be the same place as the command itself. So if you want to use a command for more than one task you can set up a folder for each task with appropriate mfaktc.ini and worktodo.txt (or whatever the command you are using needs) in them, then run /full/path/to/command in each directory. Sometimes learing Linux is easier if you have not had much experience with Windows. Chris
2020-08-24, 16:43   #3305
storm5510
Random Account

Aug 2009
U.S.A.

22·13·31 Posts

Quote:
 Originally Posted by chris2be8 ..Sometimes learing Linux is easier if you have not had much experience with Windows. Chris
Add MS-DOS. I started with this in 1988. Add nearly every Windows version there ever was. There you have it. My Linux learning experience was not so bad because I started with Ubuntu, which is mostly GUI. The console part took a little longer. I learned what I needed to get by and maybe a little more.

Q.: I have seen references to mfaktc v0.22. What is the story with it?

2020-09-06, 05:36   #3306
DrobinsonPE

Aug 2020

5210 Posts

Quote:
 Originally Posted by chris2be8 I think the key is that mfaktc.ini and worktodo.txt have to be in the folder where you run the command. Which does not have to be the same place as the command itself.
It took me a while to figure out what you said, but I get it now. Thank you for the explanation.

I have been running my GPU for a few weeks now and thought I would share some results. Mfaktc and mprime run very slightly faster when they are running together. Power usage is, mprime alone 73W, mfaktc alone 145W, mprime and mfaktc 182W. The computer is an i3-4130T with a GTX-1650 Super. Most of the time I run the GPU at nvidia-smi -PL 70. The same effect happens at -PL70 but it is a smaller difference.

Code:
mprime 30.3 build 4 and mfaktc-0.21 running at nvidia-smi -PL100

mfaktc before mprime:
M98413771 from 2^76 to 2^77 [mfaktc 0.21 barrett87_mul32_gs]
Sep 05 08:00 |  288   6.4% | 10.793   2h41m |   1296.74    82485    n.a.%
Sep 05 08:00 |  293   6.5% | 10.818   2h41m |   1293.75    82485    n.a.%

mfaktc with mprime:
M98413771 from 2^76 to 2^77 [mfaktc 0.21 barrett87_mul32_gs]
Sep 05 08:13 |  641  14.0% | 10.774   2h28m |   1299.03    82485    n.a.%
Sep 05 08:13 |  644  14.1% | 10.775   2h28m |   1298.91    82485    n.a.%
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| 63%   76C    P2    98W / 100W |    460MiB /  3909MiB |    100%      Default |
+-------------------------------+----------------------+----------------------+

mprime with mfaktc:
[Work thread Sep 5 08:26] Iteration: 490000 / 54082711 [0.90%], ms/iter:  9.066, ETA: 5d 14:57
[Work thread Sep 5 08:28] Iteration: 500000 / 54082711 [0.92%], ms/iter:  9.062, ETA: 5d 14:52

mfaktc after mprime:
Sep 05 08:34 | 1184  25.8% | 10.796   2h08m |   1296.38    82485    n.a.%
Sep 05 08:34 | 1185  25.9% | 10.797   2h07m |   1296.26    82485    n.a.%

mprime running alone:
[Work thread Sep 5 21:31] Iteration: 700000 / 54082711 [1.29%], ms/iter:  9.128, ETA: 5d 15:20
[Work thread Sep 5 21:32] Iteration: 710000 / 54082711 [1.31%], ms/iter:  9.126, ETA: 5d 15:18

2020-09-06, 12:02   #3307
axn

Jun 2003

111458 Posts

Quote:
 Originally Posted by DrobinsonPE Most of the time I run the GPU at nvidia-smi -PL 70.
Out of curiosity, what is your power consumption and thruput if you lock the graphics clock to base clock (nvidia-smi -lgc 1530)?

You can reset graphics clock by nvidia-smi -rgc afterwards.

2020-09-06, 15:06   #3308
DrobinsonPE

Aug 2020

22×13 Posts

Quote:
 Originally Posted by axn Out of curiosity, what is your power consumption and thruput if you lock the graphics clock to base clock (nvidia-smi -lgc 1530)?
I like these results. It lowered the power usage and increased the efficiency. I was trying to get my power use down to this level but it would not go below -PL70.

Code:
mfaktc with PL-70, Power usage 111W:
Sep 06 07:23 | 1677  36.5% | 11.591   1h57m |   1207.16    82485    n.a.%
Sep 06 07:23 | 1680  36.6% | 11.627   1h58m |   1203.42    82485    n.a.%
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| 52%   66C    P2    66W /  70W |    477MiB /  3909MiB |    100%      Default |
+-------------------------------+----------------------+----------------------+

mfaktc with PL-70 and nvidia-smi -lgc 1530, Power usage 92W:
Sep 06 07:33 | 1884  40.7% | 12.707   2h00m |   1101.14    82485    n.a.%
Sep 06 07:33 | 1889  40.8% | 12.713   2h00m |   1100.62    82485    n.a.%
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| 43%   58C    P2    53W /  70W |    488MiB /  3909MiB |    100%      Default |
+-------------------------------+----------------------+----------------------+

mfaktc with PL-100 and nvidia-smi -lgc 1530, Power usage 92W:
Sep 06 07:42 | 2057  44.7% | 12.710   1h52m |   1100.88    82485    n.a.%
Sep 06 07:42 | 2060  44.8% | 12.707   1h52m |   1101.14    82485    n.a.%
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| 43%   59C    P2    54W / 100W |    488MiB /  3909MiB |    100%      Default |
+-------------------------------+----------------------+----------------------+

2020-09-15, 17:36   #3309
storm5510
Random Account

Aug 2009
U.S.A.

64C16 Posts

Quote:
 Originally Posted by DrobinsonPE https://www.mersenneforum.org/images...s/viewpost.gif here is the output of ls -l from the folder mfaktc/mfaktc021 -rw-rw-rw- 1 user user 18845 Feb 17 2015 Changelog.txt -rw-rw-rw- 1 user user 35147 Feb 17 2015 COPYING -rwxrwxr-x 1 user user 2719952 Aug 22 20:40 mfaktc.exe drwxrwxr-x 2 user user 4096 Sep 4 2019 src -rw-rw-r- - 1 user user 55 Aug 22 20:55 worktodo.txt
What is the significance of the numbers I have marked in red? I have two which are zero. This resulted in hidden files. Is there any way to change them?

2020-09-15, 17:45   #3310
chalsall
If I May

"Chris Halsall"
Sep 2002

100100010001102 Posts

Quote:
 Originally Posted by storm5510 What is the significance of the numbers I have marked in red? I have two which are zero.

2020-09-16, 08:41   #3311
kruoli

"Oliver"
Sep 2017
Porta Westfalica, DE

7×47 Posts

Quote:
 Originally Posted by storm5510 -rwxrwxr-x 1 user user 2719952 Aug 22 20:40 mfaktc.exe
That's weird. Why does it have an .exe file extension? That's usually not the case in Linux.
And while you can omit the .exe extension in CMD, that's not valid for BASH etc. So if you have your mfaktc named with extension, you'll have to write ./mfaktc.exe.

Last fiddled with by kruoli on 2020-09-16 at 08:44 Reason: Additional information.

 Similar Threads Thread Thread Starter Forum Replies Last Post Bdot GPU Computing 1656 2020-10-13 14:21 firejuggler GPU Computing 752 2020-09-08 16:15 froderik GPU Computing 4 2016-10-30 15:29 fivemack Programming 112 2015-02-12 22:51 xilman Programming 1 2009-11-16 10:26

All times are UTC. The time now is 08:39.

Fri Oct 23 08:39:50 UTC 2020 up 43 days, 5:50, 0 users, load averages: 1.04, 1.28, 1.33