mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Reply
 
Thread Tools
Old 2013-01-12, 18:35   #1
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

14508 Posts
Default GPU72.com TF worm fetching tool now available

Overview:
Over the past few months I received many requests to add GPU72 work fetching to MISFIT. I have also seen other threads in the GPU72 forum asking the same thing. Since Challsal has been insanely busy with real life work we agreed that my authoring of a simple HTTP POST type utility is a useful solution until he has completed his PrimeNET style API. Development was recently completed, and several persons participated in a closed beta test cycle.
For flexibility I built it as a console application thus allowing it to be executed by MISFIT or independently scripted by your hand. Additional flexibility was designed in where the program takes a single command line argument which is the configuration file you want it to utilize. The benefit of this is you can have as many configurations as you want where each configuration file fetches work with different parameters.



GPU72WorkFetcher.exe is written in C# against .NET 3.51 and compiled in Visual Studio 2010. A compiled version and full source code are available.


Key Features:
Single .EXE with no install required and only 13kb.
Configurable parameter file controlling all the possible values GPU72 allows when getting assignments
Implements the “.LCK” file locking mechanism found in by MFAKTO and MISFIT
Exit codes for robust scripting
Available source code for persons inclined to further customize it
Logging of HTML stream from each run

Configuration file values:

StagingFile: file_receiving_assignments (created if not exist, appended if exist)
ReloadWhenBelow:100 (threshold determines when Staging File needs to be reloaded)
FetchCount:50 (how many assignments to request from GPU72)
Low:0 (optional range low value)
High:100000000 (optional range high value)
Pledge:73 (will factor to)
#OPTION (type of TF assignments you want)
#WhatMakesSense = 0
#LowestTFLevel = 1
#HighestTFLevel = 2
#LowestExponent = 3
#OldestExponent = 4
Option:0

ReplaceNAwithDate:true (replaces Factor=N/A with Factor=YYYY-MM-DD )
URL:https://www.gpu72.com/account/getassignments/lltf/ (what page on GPU72 to fetch from)
UserID:ABC (GPU72 user id)
UserPWD:XYZ (GPU72 password)


How to get started:
1. Download GPU72FETCHER.zip from http://mersenneforum.org/misfit/downloads/gpu72/
2. Unzip all files. MISFIT users should unzip into MISFIT directory
3. Edit the provided GPU72config.txt file with your credentials
4. Open a command prompt to where you unzipped the files
5. Execute the RunFetcher.bat and observe the results
6. For MISFIT users see screenshot on how to implement in MISFIT directly after step #5 works
http://mersenneforum.org/misfit/screenshots/shot15.PNG

Error Codes:
0: Fetching of work was not required because number of assignments in Staging File was >= ReloadWhenBelow value

1: Fetching was required and work was retrieved, parsed out, and stored OK

100: A fatal error occurred. See screen output for condition


Special thanks to the following for guidance, ideas and testing.

Chalsall
FLASHJH
Kracker
Kladner
JMLMX
swl551 is offline   Reply With Quote
Old 2013-01-12, 18:36   #2
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5×7×139 Posts
Default

Thanks again for all your work Scott.
chalsall is online now   Reply With Quote
Old 2013-01-12, 20:21   #3
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Scott-
My sincerely thanks, as well. I can now say, as have you, that Auto Submit works flawlessly.....along with all the other features which I have tried so far.

This application is fantastic. I recommend it to all Windows users here.
kl
kladner is offline   Reply With Quote
Old 2013-01-12, 21:47   #4
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Thanks for your hard work! I logged in to let you know testing has been perfect, but I see you posted it already.

Quote:
Originally Posted by swl551 View Post
Error Codes:
0: Fetching of work was not required because number of assignments in Staging File was >= ReloadWhenBelow value

1: Fetching was required and work was retrieved, parsed out, and stored OK

100: A fatal error occurred. See screen output for condition
One question on this. I've been getting a 0 when everything works correctly and it fetched assignments?

Last fiddled with by flashjh on 2013-01-12 at 21:51
flashjh is offline   Reply With Quote
Old 2013-01-12, 22:19   #5
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by flashjh View Post
Thanks for your hard work! I logged in to let you know testing has been perfect, but I see you posted it already.


One question on this. I've been getting a 0 when everything works correctly and it fetched assignments?
If you are calling the fetcher from a batch file you are probably getting the result code of cmd.exe instead from the fetcher.exe. You may need to do something like
Code:
@echo off
my_nify_exe.exe
if errorlevel 1 (
   echo Failure Reason Given is %errorlevel%
   exit /b %errorlevel%
)
Being a MISFIT user you don't need a batch file. See screenshot 15 on how to configure.

If this does not help let me know.

Last fiddled with by swl551 on 2013-01-12 at 22:21
swl551 is offline   Reply With Quote
Old 2013-01-12, 22:23   #6
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

I swapped to the new one a bit ago, but it hasn't run yet. It should report correctly the next time time it runs. Thanks.
flashjh is offline   Reply With Quote
Old 2013-01-13, 02:33   #7
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23×271 Posts
Default

As always, thanks We all appreciate it.
kracker is offline   Reply With Quote
Old 2013-01-13, 02:57   #8
Chuck
 
Chuck's Avatar
 
May 2011
Orange Park, FL

3·5·59 Posts
Default

Thanks; this is a handy thing.
Chuck is offline   Reply With Quote
Old 2013-01-13, 16:03   #9
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by Chuck View Post
Thanks; this is a handy thing.
have u tried Misfit yet? Feature packed, it is!
swl551 is offline   Reply With Quote
Old 2013-01-13, 16:08   #10
Chuck
 
Chuck's Avatar
 
May 2011
Orange Park, FL

3×5×59 Posts
Default

Quote:
Originally Posted by swl551 View Post
have u tried Misfit yet? Feature packed, it is!
I may look at it, now that work can be received through GPU72; but I only have one machine doing TF and now only one mfaktc instance due to the release of 0.20, so it's easy to do it manually.
Chuck is offline   Reply With Quote
Old 2013-01-13, 23:05   #11
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by Chuck View Post
I may look at it, now that work can be received through GPU72; but I only have one machine doing TF and now only one mfaktc instance due to the release of 0.20, so it's easy to do it manually.
Tell me about it! 0.20 is cutting into sales of Misfit! . . I am taking this to the Judger!
swl551 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
a lyric finding tool MattcAnderson Soap Box 1 2017-01-01 15:18
Auto-XYYXF tool fivemack NFS@Home 3 2016-07-06 04:01
TF fetching/reporting toolkit for Linux swl551 PrimeNet 20 2014-06-19 15:00
GPU72's fetching/reporting API Aramis Wyler GPU to 72 44 2013-04-10 13:41
tool to help with Top 5000 list Mini-Geek Lounge 6 2008-05-04 03:19

All times are UTC. The time now is 15:04.


Fri Jul 16 15:04:28 UTC 2021 up 49 days, 12:51, 2 users, load averages: 2.12, 1.94, 1.75

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.