+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: CPU <-> GPU rebranding  (Read 236900 times)

Offline M_M

  • Squire
  • *
  • Posts: 32
Re: CPU <-> GPU rebranding perl script
« Reply #15 on: 21 May 2009, 04:05:57 pm »
Raistmer, could you please check EPG suggestion and release a new version of the script?

Thanks in advance.

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: CPU <-> GPU rebranding perl script
« Reply #16 on: 21 May 2009, 11:19:48 pm »
Try this one


[attachment deleted by admin]

EPG

  • Guest
Re: CPU <-> GPU rebranding perl script
« Reply #17 on: 22 May 2009, 03:34:53 pm »
Tested with Seti MB 603,608 AP503, Einstein@home wus; looks ok to me.
Thank you very much!

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: CPU <-> GPU rebranding perl script
« Reply #18 on: 22 May 2009, 03:46:24 pm »
Tested with Seti MB 603,608 AP503, Einstein@home wus; looks ok to me.
Thank you very much!
Fine. I used your hint about app_name along with other changes.

Offline M_M

  • Squire
  • *
  • Posts: 32
Re: CPU <-> GPU rebranding perl script
« Reply #19 on: 23 May 2009, 02:45:41 pm »
Seems to be working OK now. Thanks a lot.


Offline Marius

  • Knight o' The Realm
  • **
  • Posts: 84
Re: CPU <-> GPU rebranding perl script
« Reply #20 on: 31 May 2009, 03:17:36 pm »
This is a great idea, i'm still filling my queue after getting a new computer (and boinc is still running low on gpu units as queue starts with cpu tasks  :-\)

Anywhay, I created a little tool for rebranding the units, copy it to your data directory and run from there. No additional binaries are needed, there's no unit limit and you can choose the percentage it needs to rebrand.

Just in case things go wrong (and as Raistmer always tells us), this is beta, make sure you disable network acces, stop boinc and make a safety copy.

This tool is a lot slower then the perl script as it parses all the xml  ;D



[attachment deleted by admin]
« Last Edit: 31 May 2009, 03:20:00 pm by Marius »

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: CPU <-> GPU rebranding perl script
« Reply #21 on: 31 May 2009, 03:40:51 pm »
No additional binaries are needed, there's no unit limit and you can choose the percentage it needs to rebrand.

Did you preserve AR ranges in your tool? The primary aim of original script not just to move part of tasks from GPU to CPU and vice versa, but to put on GPU only those tasks that computed better on GPU and leave other (VLAR included) on CPU.

Offline Marius

  • Knight o' The Realm
  • **
  • Posts: 84
Re: CPU <-> GPU rebranding perl script
« Reply #22 on: 31 May 2009, 03:53:28 pm »
Did you preserve AR ranges in your tool? The primary aim of original script not just to move part of tasks from GPU to CPU and vice versa, but to put on GPU only those tasks that computed better on GPU and leave other (VLAR included) on CPU.

Yes VLAR (<0.13) and VHAR (>1.127) are forced on to the cpu no matter what the choosen percentage is. The rest of the units can be swapped. Its done almost exactly as in the perl script with some extra code to get the percentages right. If there are a lot of vlar/vhar units the percentages can be off though.
« Last Edit: 31 May 2009, 03:55:33 pm by Marius »

Offline Raistmer

  • Working Code Wizard
  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 14349
Re: CPU <-> GPU rebranding perl script
« Reply #23 on: 31 May 2009, 03:56:54 pm »
Excellent! :)

Offline KarVi

  • Alpha Tester
  • Knight Templar
  • ***
  • Posts: 252
Re: CPU <-> GPU rebranding perl script
« Reply #24 on: 01 Jun 2009, 05:29:25 am »
Just tried out Marius's reschedule app.

Seems to be working perfectly on my system.

Now all I would wish for was to make it accept simple cmdline parameters, so that I could run it in a bat-file.

It could look something like this:

net stop boinc
reschedule.exe 100  (the number tells the tool how much % to convert to CUDA)
net start boinc


Then I could schedule this bat-file to run once or twice a day, and have rebranding done automatically. Would be very nice.

A smile is the shortest distance between two peoble (Victor Borge).

Offline Marius

  • Knight o' The Realm
  • **
  • Posts: 84
Re: CPU <-> GPU rebranding perl script
« Reply #25 on: 01 Jun 2009, 09:51:13 am »
No problem KarVi, i added a commandline param. When started you only see the process in the taskmanager as its a GUI application.

For pushing 75% of the units to the GPU use:
ReSchedule.exe /Autorun 75

Enjoy,
Marius





[attachment deleted by admin]

Offline Jason G

  • Construction Fraggle
  • Knight who says 'Ni!'
  • *****
  • Posts: 8980
Re: CPU <-> GPU rebranding perl script
« Reply #26 on: 01 Jun 2009, 12:45:00 pm »
Cool, I've also set this up on one of my machines in scheduled tasks to run once every three hours, using a batch file that stops boinc service first, then restarts it. Seems to be working. Nice one  ;D

Offline Marius

  • Knight o' The Realm
  • **
  • Posts: 84
Re: CPU <-> GPU rebranding perl script
« Reply #27 on: 01 Jun 2009, 04:55:02 pm »
every three hours
In my experience each time you stop boinc service you will loose a (big) part of the workunits in process (unless you only run GPU). I guess executing it once every 24 or 48 hours would be fine to deal with the vlar/vhar problems.

Offline KarVi

  • Alpha Tester
  • Knight Templar
  • ***
  • Posts: 252
Re: CPU <-> GPU rebranding perl script
« Reply #28 on: 01 Jun 2009, 05:00:59 pm »
Thanks Marius for the swift developement of a new version.

Will set this up to run once every 24 hours, and see how things develop.

Thanks again, this will make things easier going ahead.
A smile is the shortest distance between two peoble (Victor Borge).

Offline Richard Haselgrove

  • Messenger Pigeon
  • Knight who says 'Ni!'
  • *****
  • Posts: 2819
Re: CPU <-> GPU rebranding perl script
« Reply #29 on: 02 Jun 2009, 04:04:24 am »

In my experience each time you stop boinc service you will loose a (big) part of the workunits in process (unless you only run GPU). I guess executing it once every 24 or 48 hours would be fine to deal with the vlar/vhar problems.


Then you have something wrong with your setup. I've lost about three or four tasks, in total, over several machines and several years. Unfortunately, most of them were CPDN tasks!

One set of problems was related to a failing hard disk (accepted for replacement under RMA) - BOINC apps couldn't read back their checkpoint files on restart.

Another cause is the <platform> tag which I erroneously put in early versions of the CUDA app_info.xml - if you still have that, it should come out.

I run a script which checks first to see how many VLAR tasks (and optionally VHAR tasks) are in the CUDA queue, and how close they are to the head of that queue. If nothing nasty is likely to happen in the near future, it doesn't bother with the stop/restart cycle - so I can run it as often as I like (every 6 hours seems plenty). Maybe you could think about something like that?

 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 50
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 99
Total: 99
Powered by EzPortal