Possible to write my own Collatz app?
log in

Advanced search

Message boards : Number crunching : Possible to write my own Collatz app?

Author Message
blub
Send message
Joined: 25 Sep 14
Posts: 1
Credit: 2,579,447
RAC: 0
Message 19899 - Posted: 29 Sep 2014, 16:01:30 UTC

Just now I'm writing my first Verilog design for FPGAs. As it is just calculating collatz series and returning the longest few it finds, I was wandering if it was possible to integrate it with collatz@home.

My idea was a python script which claims to be a boinc client, connects to the collatz server, gets a workunit, calculates it on the fpga and reports back. If this was possible to do it would certainly be a motivation boost.

As far as I can see the Workunit is just a file with the number to start on? How does the client know how long to keep crunching? Hardcoded in the App? and what is reported back? only the longest series

Profile mikey
Avatar
Send message
Joined: 11 Aug 09
Posts: 3242
Credit: 1,687,090,754
RAC: 6,191,845
Message 19903 - Posted: 30 Sep 2014, 11:26:54 UTC - in response to Message 19899.

Just now I'm writing my first Verilog design for FPGAs. As it is just calculating collatz series and returning the longest few it finds, I was wandering if it was possible to integrate it with collatz@home.

My idea was a python script which claims to be a boinc client, connects to the collatz server, gets a workunit, calculates it on the fpga and reports back. If this was possible to do it would certainly be a motivation boost.

As far as I can see the Workunit is just a file with the number to start on? How does the client know how long to keep crunching? Hardcoded in the App? and what is reported back? only the longest series


Send a PM with your idea to Slicker, the Admin here, he should be able to give a definitive answer.

Profile Slicker
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 11 Jun 09
Posts: 2525
Credit: 740,580,099
RAC: 2
Message 20507 - Posted: 3 Jun 2015, 20:31:00 UTC

The WU file name contains the start number and the length. The actual WU file contains the start number and ending number.

Given the amount of testing needed to avoid having to re-run each and every WU on the server in order to validate the results since there is no longer a wingman, I'd have to be convinced beyond any doubt that the app was returning correct results before accepting them from a third party app. The testing for the new sieve app has taken a several months of testing, tweaking, testing some more, etc. until I finally have a stable version where the output matches the output of a non-optimized CPU brute force version of the app for hundreds of WUs in a row. Now that the app is stable, I have to test it again with numerous driver versions. Then I have to make sure that if a processor overheats or is so overclocked that the output isn't 100%, that the error checking within the app finds that as well. Because the output only contains the best results, I have to know that it really is reporting the best result, that it didn't skip any numbers, and that the results are accurate. Sure, I can check the one and only number it returns, but if the WU stops processing after the first number and reports the steps of that number correctly, I'd have no way of knowing that it skipped millions of numbers. For that reason, and because people will do all sorts of things whether ethical or not to increase their credit, I've not allowed third party apps this far.


Post to thread

Message boards : Number crunching : Possible to write my own Collatz app?


Main page · Your account · Message boards


Copyright © 2018 Jon Sonntag; All rights reserved.