mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-01-03, 17:24   #1508
sonjohan
 
sonjohan's Avatar
 
May 2003
Belgium

27810 Posts
Default

Quote:
Originally Posted by kjaget View Post
Once we get automated Primenet interaction it won't be a big deal.
I so like the manual upload of results. I like to see the extreme jump in stats.

Also, with automated Primenet interaction, it's impossible to force TF to 72, which I'm currently doing for all exponents I received.
sonjohan is offline   Reply With Quote
Old 2012-01-03, 18:37   #1509
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Quote:
Originally Posted by Dubslow View Post
<SNIP>
@kladner: 'start' is not its own executable, which is (AFAIK) what shortcuts can recognize. cmd.exe is (obviously) its own executable.
Did you ever work anything out on this front?

And a related question, why do you avoid batch files? Something similar to what James Heinrich said -start without cmd in a batch- is what I'm using now. It does all the affinity/priority stuff as before, but now passes Ctl-C to mfaktc.

Of course it's your choice, to bat or not to bat. I'm just curious as to why you don't like them.
kladner is offline   Reply With Quote
Old 2012-01-03, 20:47   #1510
oswald
 
oswald's Avatar
 
Apr 2011
in vivo

3×52 Posts
Default

Quote:
Originally Posted by kladner View Post
Of course it's your choice, to bat or not to bat. I'm just curious as to why you don't like them.
The Riddler will only riddle The Batman.

Yes, if you are going to type it more than a couple of times, script or batch it. I must admit I'm an Algorithm Junky. The beauty of it when you make it work is a joy into itself. The challenge of debug. Oops, sorry. I sound like Monty Python.

Anyway, I'd like to know the outcome as well.
oswald is offline   Reply With Quote
Old 2012-01-03, 21:38   #1511
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

I was trying to see if it was possible in the shortcut, with its greater simplicity (also, while not really relevant here, for the 'average' user, 'batch file' will put them off completely while 'shortcut' is less terrifying). Also, I only have one instance, unlike the vast majority of people here. If I get unlazy I might re-implement it.
Dubslow is offline   Reply With Quote
Old 2012-01-04, 03:39   #1512
bcp19
 
bcp19's Avatar
 
Oct 2011

7×97 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
(51 * 50 * 49 * 48) / 4! to 1
Your pocket 8 digit calculator can do that one. That is a super trivial calculation.
Quote:
Originally Posted by LaurV View Post
This post is good for xyzzy's top. Sure that program was not doing something else too? There are only 249900 of them, and even a 8-bit Sinclair could spit them out in a blink, or use a matrix (needle) printer to print them in less then 12 hours...
1) Not a math major
2) you're forgetting I am not a major programmer
3) program was running in basic
4) misspoke... program was looking for the MINIMUM number of tickets it would take to get ALL possible 4 number combos; IE: 1,2,3,4,5,6 has 1,2,3,4 1,2,3,5 1,2,3,6 1,2,4,5 1,2,4,6 1,2,5,6 1,3,4,5 1,3,4,6 1,2,5,6 2,3,4,5 2,3,4,6 2,3,5,6 2,4,5,6 3,4,5,6, so that is 1 card.

6 nested for next loops 1 to 46, 2 to 47, 3 to 48, 4 to 49, 5 to 50 and 6 to 51 = 9,474,296,896 iterations of the calculation process. Don't ask me for the program, this was around 20 years ago and I am going from memory with what I have here. If I am remembering correctly, it ran through this more than once, as on the first run through it would only write to the 'array' if there were no duplicate instances; IE: 1,2,3,4-6,x,x+1 to 51 would be bypassed after 1,2,3,4,5,6 was processed, seems like it looked for all 14, then for 10/14, then 6/14 and then just spit out the remaining unchecked 'array' items as it was easier to use human calculations than continue deeper into the computer calculations.

Last fiddled with by bcp19 on 2012-01-04 at 03:41
bcp19 is offline   Reply With Quote
Old 2012-01-04, 07:24   #1513
ckdo
 
ckdo's Avatar
 
Dec 2007
Cleves, Germany

2·5·53 Posts
Default

Quote:
Originally Posted by ckdo View Post
Both of you are, of course, completely wrong in case bcp19 didn't talk about a "4 out of 51" lottery in the first place.
Quote:
Originally Posted by bcp19 View Post
1,2,3,4,5,6 [...] is 1 card.
QED.
ckdo is offline   Reply With Quote
Old 2012-01-04, 07:30   #1514
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 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.
Whatever I was doing then, it wasn't right. I just tried this again, with opposite results: ^C is passed to mfaktc. Unfortunately, the options aren't recognized and the affinity isn't set properly (not set at all).

So that still leaves me clueless.
Dubslow is offline   Reply With Quote
Old 2012-01-05, 07:51   #1515
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

25B716 Posts
Default

Quote:
Originally Posted by bcp19 View Post
1) 1,2,3,4,5,6 .... is 1 card.
Quote:
Originally Posted by ckdo View Post
QED.
They are much less in this case, and their number is easier to compute, and they are easy to "spread" (how do you call this process in English? is it "spread"? like writing down all permutations of some set, or all coefficients of some polynomial multiplication, or some sum/series formula?) with a simple algorithm if you want them printed. It will take even less time then I said initially.

Hint: you have maximum 249k of them with the trivial cover: each 1234 is covered by a 1234xy with a random x,y. From here you start cutting. As C(6,4)=15, the theoretical minimum is 16660, assuming you can cover it in a disjunctive manner. Can you?

Last fiddled with by LaurV on 2012-01-05 at 08:00
LaurV is online now   Reply With Quote
Old 2012-01-05, 16:15   #1516
bcp19
 
bcp19's Avatar
 
Oct 2011

7·97 Posts
Default

Quote:
Originally Posted by LaurV View Post
They are much less in this case, and their number is easier to compute, and they are easy to "spread" (how do you call this process in English? is it "spread"? like writing down all permutations of some set, or all coefficients of some polynomial multiplication, or some sum/series formula?) with a simple algorithm if you want them printed. It will take even less time then I said initially.

Hint: you have maximum 249k of them with the trivial cover: each 1234 is covered by a 1234xy with a random x,y. From here you start cutting. As C(6,4)=15, the theoretical minimum is 16660, assuming you can cover it in a disjunctive manner. Can you?
As mentioned before, I am not a math major, nor a major programmer. When I wrote the program I did not take into consideration the 1,2,3,4,x,y as you state, so the program ran through all 9.4 billion iterations.

EDIT: One of the other things to consider, the 8088 was a 5MHz processor and probably had at most 64MB memory, which means the program had to do it's array through disc access, which would considerable slow the process, in addition to the slowdown already caused by using basic.

Last fiddled with by bcp19 on 2012-01-05 at 16:45
bcp19 is offline   Reply With Quote
Old 2012-01-05, 16:55   #1517
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Quote:
Originally Posted by Dubslow View Post
I was trying to see if it was possible in the shortcut, with its greater simplicity (also, while not really relevant here, for the 'average' user, 'batch file' will put them off completely while 'shortcut' is less terrifying). Also, I only have one instance, unlike the vast majority of people here. If I get unlazy I might re-implement it.
OK. I get your point. I guess I've dealt with batches for so long it comes naturally, at least for simple things.
kladner is offline   Reply With Quote
Old 2012-01-05, 19:39   #1518
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·3·1,693 Posts
Default

Quote:
Originally Posted by bcp19 View Post

EDIT: One of the other things to consider, the 8088 was a 5MHz processor and probably had at most 64MB memory,
That would be KB, right?
kladner 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:15 UTC 2021 up 10 days, 4:49, 0 users, load averages: 0.87, 1.02, 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.