mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-12-25, 04:47   #1453
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by kladner View Post
cmd.exe /k "start /b /low /affinity 0x20 mfaktc-win-64.exe"

cmd.exe /k "start /b /low /affinity 0x10 mfaktc-win-64.exe"

cmd.exe /k "start /b /low /affinity 0x08 mfaktc-win-64.exe"
Back to Windows for the time being: While I don't run a web server and can't play Minecraft, I can play all things Steam, such as TF2. Anyways kladner, I've discovered the problem with this is that ^C's are sent to cmd.exe, not mfaktc -- so I get a new prompt, which eventually gets overridden by an mfaktc class output. Just so I could say I tried, 'mfaktc-win-64.exe /affinity 0x80' doesn't work -- no surprises there. I'm running this from a shortcut. Edit: Just tried 'start /b /low /affinity 0x08 mfaktc-win-64.exe', but it again said 'Target not found'. Unfortunate.

Last fiddled with by Dubslow on 2011-12-25 at 04:49
Dubslow is offline   Reply With Quote
Old 2011-12-25, 05:48   #1454
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Quote:
Edit: Just tried 'start /b /low /affinity 0x08 mfaktc-win-64.exe', but it again said 'Target not found'.
Are you sure you're in the right directory? Check the Properties of the shortcut and look at the "Start in:" line. I have not tried the shortcut approach. I would have thought that the command line in the quote above might have worked.

Yes. Ctl-C does not get through to mfaktc in the batch scenario. Ctl-Break will stop it. Probably not ideal, but I don't stop mfaktc, or let it stop that often.
kladner is offline   Reply With Quote
Old 2011-12-25, 06:02   #1455
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Quote:
Originally Posted by Radikalinsky View Post
@Kladner,
I manually submitted both lines. Maybe it is because with partial tests the primenet server does some assumptions. But as I understand, the primenet server just does not yet understand all the details of the mfaktc message, both 0.17 and 0.18.

Thanks, Rad
OK. It seems to work in some situations. The lines I quoted above were from results.txt.

This is what shows in my Results Details page on the server:

Code:
Manual testing    52279247    F    2011-12-24 05:43    0.0    1525757169405396xxxxx    6.2631

Manual testing    52279247    NF    2011-12-24 05:43    0.0    no factor for M52279247 from 2^69 to 2^70 [mfaktc 0.18 barrett79_mul32]    2.2870
When I encountered the "partial credit" situation, the two lines were submitted separately, in two different uploads. The second upload didn't produce any further results.

These are only attempts at deduction on my part. But PrimeNet does not seem to balk at all Factor Found reports from mfaktc 0.18.

Last fiddled with by kladner on 2011-12-25 at 06:04
kladner is offline   Reply With Quote
Old 2011-12-25, 06:20   #1456
oswald
 
oswald's Avatar
 
Apr 2011
in vivo

4B16 Posts
Default

Quote:
From Dubslow: I'm running this from a shortcut. Edit: Just tried 'start /b /low /affinity 0x08 mfaktc-win-64.exe', but it again said 'Target not found'. Unfortunate.
Code:
c:
cd "\Program Files\mfaktc\"
cmd.exe /c "start "mfaktc 1 DCTF" /low /affinity C mfaktc-win-64.exe -v 1"
cd "\Program Files\mfaktc - 2\"
cmd.exe /c "start "mfaktc 2 LLTF" /low /affinity 30 mfaktc-win-64.exe -v 1"
cd "\Program Files\mfaktc - 3\"
cmd.exe /c "start "mfaktc 3 LLTF 74" /low /affinity C0 mfaktc-win-64.exe -v 1"
I have the above in TF.bat. It even works from startup. No error checking and I'm using hex for the affinity.

It gives me three windows with the title of what each is for. Maybe it will give you a starting point.
oswald is offline   Reply With Quote
Old 2011-12-25, 18:20   #1457
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

My problem is I'm trying not to use a batch file, just a shortcut. kladner, it was starting in the correct directory, I checked that when I set it up.
Dubslow is offline   Reply With Quote
Old 2011-12-25, 20:26   #1458
oswald
 
oswald's Avatar
 
Apr 2011
in vivo

3·52 Posts
Default

OK, seems I misunderstood.

I made a shortcut by right clicking on mfaktc-win-64.exe and picking sendto desktop (shortcut).

Then I right clicked on the shortcut and picked properties.

Target box had:
Code:
"C:\Program Files\mfaktc\mfaktc-win-64.exe"
The options were the added:
Code:
"/low /affinity C mfaktc-win-64.exe -v 1"
The Target box now has:
Code:
"C:\Program Files\mfaktc\mfaktc-win-64.exe" "/low /affinity C mfaktc-win-64.exe -v 1"
Note that quotes pairs are needed for the program .exe. Quote pairs for the program command line options seem to be optional.

Double click on the shortcut and the programs starts.

If I'm bugging you or really misunderstand, just say so, I will stop.
oswald is offline   Reply With Quote
Old 2011-12-25, 21:48   #1459
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

11·311 Posts
Default

I run 2 instances of mfaktc, in C:\Prime95\mfaktc\1\ and C:\Prime95\mfaktc\2\
I put this simple batch file in C:\Prime95\mfaktc\mfaktc.bat
Code:
cd \Prime95\mfaktc\1
start "mfaktc 1" /min /low /affinity 0x01 mfaktc-win-64.exe

cd \Prime95\mfaktc\2
start "mfaktc 2" /min /low /affinity 0x04 mfaktc-win-64.exe
Any shortcut I want simply points to the batch file.
James Heinrich is offline   Reply With Quote
Old 2011-12-26, 02:47   #1460
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

27AE16 Posts
Default

Quote:
Originally Posted by Dubslow View Post
My problem is I'm trying not to use a batch file, just a shortcut. kladner, it was starting in the correct directory, I checked that when I set it up.
OK. Just asking. I'll have to mess around with shortcuts. I'm only speaking in generalities.
kladner is offline   Reply With Quote
Old 2011-12-26, 03:47   #1461
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by oswald View Post
OK, seems I misunderstood.

I made a shortcut by right clicking on mfaktc-win-64.exe and picking sendto desktop (shortcut).

Then I right clicked on the shortcut and picked properties.

Target box had:
Code:
"C:\Program Files\mfaktc\mfaktc-win-64.exe"
The options were the added:
Code:
"/low /affinity C mfaktc-win-64.exe -v 1"
The Target box now has:
Code:
"C:\Program Files\mfaktc\mfaktc-win-64.exe" "/low /affinity C mfaktc-win-64.exe -v 1"
Note that quotes pairs are needed for the program .exe. Quote pairs for the program command line options seem to be optional.

Double click on the shortcut and the programs starts.

If I'm bugging you or really misunderstand, just say so, I will stop.
Thanks for the suggestion. I tried it though and got the same behavior as before, i.e. ^C is sent to cmd.exe, and not to mfaktc-win-64.exe .
Quote:
Originally Posted by James Heinrich View Post
I run 2 instances of mfaktc, in C:\Prime95\mfaktc\1\ and C:\Prime95\mfaktc\2\
I put this simple batch file in C:\Prime95\mfaktc\mfaktc.bat
Code:
cd \Prime95\mfaktc\1
start "mfaktc 1" /min /low /affinity 0x01 mfaktc-win-64.exe

cd \Prime95\mfaktc\2
start "mfaktc 2" /min /low /affinity 0x04 mfaktc-win-64.exe
Any shortcut I want simply points to the batch file.
Right click on the executable and click "Create shortcut". Of course, I'm only running one instance, so you'd need one for each instance if you didn't want to use the batch file.

Last fiddled with by Dubslow on 2011-12-26 at 03:47
Dubslow is offline   Reply With Quote
Old 2011-12-26, 04:12   #1462
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·3·1,693 Posts
Default

I set up two shortcuts. On the left, it sets the directory in Start in: and runs the same command line I use in my batch files. An example is in the text above. Unfortunately, in the captured view of the properties box, the entire line is not visible. It is, however, the same as the last line in the batch file. This works exactly the same as the batch. It sets priority and affinity, but Ctl-C goes to CMD, not mfaktc.

The shortcut on the right also sets the directory, but it simply runs mfaktc. This launches mfaktc, and Ctl-C goes to the program. However, affinity and priority are not set and so default to all cores and normal priority.

I haven't yet tried the approach suggested by James Heinrich, using "Start" by itself without a "cmd.exe" preface.

EDIT: The following command line is not accepted by the shortcut Properties dialog:
Code:
start "mfaktc_c" /b /low /affinity 0x20 mfaktc-win-64.exe
It says "The name 'Start' specified in the target box is not valid."

However, using "Start" by itself in a batch file runs mfaktc. Affinity and Priority are set, and Ctl-C goes to mfaktc.

I am kind of confused by this. I didn't think there was much difference between a Shortcut command line, and one in a batch file.

EDIT2: I suppose that using Start in a batch file has implicitly invoked CMD to run the batch.
Attached Thumbnails
Click image for larger version

Name:	Shortcut_mfaktc.JPG
Views:	101
Size:	87.2 KB
ID:	7442  

Last fiddled with by kladner on 2011-12-26 at 04:44
kladner is offline   Reply With Quote
Old 2011-12-26, 17:17   #1463
BigBrother
 
Feb 2005
The Netherlands

2×109 Posts
Default

Something odd is happening when I run mfakct 0.18 on my GT 555M. After a short while, the GPU usage drops from 100% to +- 70-80%, and a little later, it goes back again to 100% for a short time, before it drops again, ad infinitum. Mfakct 0.17 always runs at 100% GPU usage on this card.
Attached Thumbnails
Click image for larger version

Name:	odd-0.18.png
Views:	117
Size:	77.3 KB
ID:	7444  
BigBrother 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 1676 2021-06-30 21:23
The P-1 factoring CUDA program firejuggler GPU Computing 753 2020-12-12 18:07
gr-mfaktc: a CUDA program for generalized repunits prefactoring MrRepunit GPU Computing 32 2020-11-11 19:56
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 10:20.


Mon Aug 2 10:20:01 UTC 2021 up 10 days, 4:49, 0 users, load averages: 0.94, 1.04, 1.12

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.