How do I run GPU high priority and other questions.

Message boards : Number crunching : How do I run GPU high priority and other questions.
Message board moderation

To post messages, you must log in.

1 · 2 · Next

AuthorMessage
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469354 - Posted: 27 Jan 2014, 1:48:04 UTC
Last modified: 27 Jan 2014, 1:48:23 UTC

How do I run GPU with high priority? I run the standard apps and have created and successfully used cc_config.xml and app_config.xml. I know very little about the codes and don't want to melt my machine. I can copy and paste very well though.

One other question, in Stderr output I have this;
OpenCL Platform Name:	 NVIDIA CUDA
Number of devices:	 8
Max compute units:	 8
I assume the number of devices, 8, is the 8 physical GPUs and max compute units, 8, is the number of WU they are to crunch. I have app_config.xml running 2 WU on each GPU, 16 total and it works great but why doesn't is show as 16 in Stderr and does it make a difference?
ID: 1469354 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469357 - Posted: 27 Jan 2014, 2:03:38 UTC - in response to Message 1469354.  
Last modified: 27 Jan 2014, 2:04:08 UTC

About the priority

For AP read you could use the -hp switch in your command line, read the description on the readme file suplied with the build.

For Mb you need to edit the file mbcuda.cfg the instructions how to do are in the file itself.
ID: 1469357 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469358 - Posted: 27 Jan 2014, 2:24:34 UTC - in response to Message 1469357.  

About the priority

For AP read you could use the -hp switch in your command line, read the description on the readme file suplied with the build.

For Mb you need to edit the file mbcuda.cfg the instructions how to do are in the file itself.

If you want to teach me to fish it is going to be a long cold winter and I will probably break my pole. Where is the DOS program and is it point and click like DOS7?
ID: 1469358 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469360 - Posted: 27 Jan 2014, 2:36:04 UTC
Last modified: 27 Jan 2014, 2:37:01 UTC

LEt´s see if i could help you with my bad english.

One at a time. Since there is no AP WU avaiable let start with MB (I asume you use the lunatics apps)

On your SETI project directory (mine is D:\Boinc\projects\setiathome.berkeley.edu) you must have this file: mbcuda.cfg

Open it with notepath and read it, there are all instructions to do what you ask for.

To rise the priority you just need to add this line (actualy just take out the ;;; in the begining of the line)

processpriority = abovenormal

Then close the file and the next MB WU started will run in the new priority. To make it work instantaneusly your need to compleately stop boinc (not just the manager) and restart.

Becareful 'abovenormal', or 'high' must be used only on crunchers only hosts or you will be experience video lag and other wierds efects.
ID: 1469360 · Report as offensive
_
Avatar

Send message
Joined: 15 Nov 12
Posts: 299
Credit: 9,037,618
RAC: 0
United States
Message 1469366 - Posted: 27 Jan 2014, 2:52:06 UTC
Last modified: 27 Jan 2014, 2:54:39 UTC

Juan has provided good information.

This thread also has instructions regarding the same topic. The user named rob smith begins the explanation about half way down.

If you do it right, wait for a few tasks to complete. Then, you can look at them. Recently I set mine to "normal" priority. Therefore, when I open up the information about tasks my computer crunches, I see this line:

Priority of process set to NORMAL successfully

I'm not sure however, if you need to be running the lunatics applications for this to work. I run lunatics.

As for the second part of your question, sorry I'm unfamiliar with that.
ID: 1469366 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469369 - Posted: 27 Jan 2014, 2:57:02 UTC - in response to Message 1469360.  
Last modified: 27 Jan 2014, 3:02:01 UTC

.
LEt´s see if i could help you with my bad english.

One at a time. Since there is no AP WU avaiable let start with MB (I asume you use the lunatics apps)

One must never ass/u/me. I use the standard apps and wish to continue using them. Your English is way better than my Portuguese. The only Portuguese I know is the pet name the Brazilian women in the Ironbound section of Newark call me; Safado.
ID: 1469369 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469370 - Posted: 27 Jan 2014, 3:00:57 UTC - in response to Message 1469369.  
Last modified: 27 Jan 2014, 3:12:24 UTC

I´m not sure about stock apps, but check if you have the file, if yes just change it will work too. Actualy the MB stocks apps comes from the Lunatics team also.

About Compute Units you could read an explanation on: http://sa09.idav.ucdavis.edu/docs/SA09_NVIDIA_IHV_talk.pdf
ID: 1469370 · Report as offensive
Profile Jeff Buck Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 11 Feb 00
Posts: 1441
Credit: 148,764,870
RAC: 0
United States
Message 1469371 - Posted: 27 Jan 2014, 3:09:55 UTC - in response to Message 1469369.  
Last modified: 27 Jan 2014, 3:12:11 UTC

I run mostly stock apps and the approach is pretty close to what Juan suggests. However, instead of mbcuda.cfg, you'll find separate files in your project directory for each Cuda flavor. So look for mbcuda-7.00-cuda50.cfg, etc. They're probably empty. There's a sample file for each one. Just pick one, change the first
;processpriority = abovenormal
to
processpriority = abovenormal
(just remove the semicolon). Save that file over each flavor of Cuda that you normally receive (probably just cuda50, cuda42, and cuda32). From that point on each GPU task will pick up the higher priority. Does it actually help? Well, frankly I don't think I noticed much difference on my machines. :^)

Edit: Be sure you use a text editor, like Notepad, when you edit the sample file.
ID: 1469371 · Report as offensive
Profile Fred E.
Volunteer tester

Send message
Joined: 22 Jul 99
Posts: 768
Credit: 24,140,697
RAC: 0
United States
Message 1469372 - Posted: 27 Jan 2014, 3:11:30 UTC
Last modified: 27 Jan 2014, 3:12:53 UTC

I think with the stock versions of the cuda apps, you may not have mbcuda.cfg but have separate files for cuda 42, 50, etc. Don't remember the filenames but they include mbcuda and the 42, 50, etc. These can be edited with notepad.

Edit: Jeff posted first and has the info on file names.
Another Fred
Support SETI@home when you search the Web with GoodSearch or shop online with GoodShop.
ID: 1469372 · Report as offensive
Profile arkayn
Volunteer tester
Avatar

Send message
Joined: 14 May 99
Posts: 4438
Credit: 55,006,323
RAC: 0
United States
Message 1469373 - Posted: 27 Jan 2014, 3:19:23 UTC - in response to Message 1469369.  

.
LEt´s see if i could help you with my bad english.

One at a time. Since there is no AP WU avaiable let start with MB (I asume you use the lunatics apps)

One must never ass/u/me. I use the standard apps and wish to continue using them. Your English is way better than my Portuguese. The only Portuguese I know is the pet name the Brazilian women in the Ironbound section of Newark call me; Safado.


You will still have the mbcuda.cfg file, but it will be empty.

;;; This configuration file is for optional control of Cuda Multibeam x41zc
;;; Currently, the available options are for
;;; application process priority control (without external tools), and
;;; per gpu priority control (useful for multiple Cuda GPU systems)
[mbcuda]
;;;;; Global applications settings, to apply to all Cuda devices
;;; You can uncomment the processpriority line below, by removing the ';', to engage machine global priority control of x41x
;;; possible options are 'belownormal' (which is the default), 'normal', 'abovenormal', or 'high'
;;; For dedicated crunching machines, 'abovenormal' is recommended
;;; raising global application priorities above the default
;;;   may have system dependant usability effects, and can have positive or negative effects on overall throughput 
processpriority = high
;;; Pulsefinding: Advanced options for long pulsefinds (affect display usability & long kernel runs)
;;; defaults are conservative.
;;; WARNING: Excessive values may induce display lag, driver timeout & recovery, or errors. 
;;; pulsefinding blocks per multiprocessor (1-16), default is 1 for Pre-Fermi, 4 for Fermi or newer GPUs
pfblockspersm = 15
;;; pulsefinding maximum periods per kernel launch  (1-1000), default is 100, as per 6.09
pfperiodsperlaunch = 200


That is what I run on my 670 & 660

ID: 1469373 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469375 - Posted: 27 Jan 2014, 3:25:32 UTC
Last modified: 27 Jan 2014, 3:27:13 UTC

OK, thank all of you for the replays. I found the files for MB and the sample file; I can see this is not going to be as easy as just changing 1 to .5 to run two WU per GPU. Will I gain enough on a dedicated cruncher going from below normal to above to risk a Cheronobel like core meltdown?
ID: 1469375 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469377 - Posted: 27 Jan 2014, 3:30:58 UTC - in response to Message 1469375.  
Last modified: 27 Jan 2014, 3:43:38 UTC

The use of this switch will not meltdown your CPU don´t worry. If you find the files just take out the ; and it will work.

The major problem when you use high priority is your video response time (some slow hosts like mine presents a noticeable video lag) or if you run other jobs in your computers.

In simply language some programs not like others runing on high priority and almost stop when that happening. Thats make no diference on a crunching only hosts but in a general host is better leave without changes.

You could expect a marginal gain of 1-2% on the performace of the hosts if you set the priority to abovenormal or high. Of course YMMV.

<edit> fast GPU´s like the 690 specialy on multiGPU host like the one you have like the abovenormal and even high setting.
ID: 1469377 · Report as offensive
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 1469378 - Posted: 27 Jan 2014, 3:40:10 UTC - in response to Message 1469360.  

Then close the file and the next MB WU started will run in the new priority. To make it work instantaneusly your need to compleately stop boinc (not just the manager) and restart.

You don't need to restart Boinc to get the apps to use the new priority level, just suspend GPU usage via the activity menu for a moment.

Claggy
ID: 1469378 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469695 - Posted: 27 Jan 2014, 22:02:12 UTC

Thank all of you, I am now crunching MB GPU WU with high priority. The only way I know is Stderr output says so. I can play a HD video with SETI running 16 WU no problem too. SETI is not asking enough from these cards.

How do I do the same with AP WU? Thank you in advance.
ID: 1469695 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469698 - Posted: 27 Jan 2014, 22:05:33 UTC
Last modified: 27 Jan 2014, 22:13:49 UTC

Look in the file: AstroPulse_OpenCL_NV_ReadMe.txt the usage of -hp

You could see the priority with taskmgr.

You have a top CPU and aparently you don´t do any CPU work, so maybe that´s why you not experience any lag. Did you check your GPU usage and temp on each GPU?

BTW if you know about some more cheap 690 (used) please tell me, i could be interested to buy few more.
ID: 1469698 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469705 - Posted: 27 Jan 2014, 22:15:55 UTC - in response to Message 1469698.  
Last modified: 27 Jan 2014, 23:06:31 UTC


You have a top CPU and aparently you don´t do any CPU work, so maybe that´s why you not experience any lag. Did you check your GPU usage and temp on each GPU?

I crunch 12 CPU MB WU along with 16 GPU MB WU. My GPU usage and temps did not change. Remember this is a crunching only test machine.

High end used cares are now being grabbed by coin miners. I think they gave up on waiting for the promised mining application specific chips.

AstroPulse_OpenCL_NV_ReadMe.txt is empty??
ID: 1469705 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469728 - Posted: 27 Jan 2014, 23:06:31 UTC - in response to Message 1469705.  

I crunch 12 CPU MB WU along with 16 GPU MB WU. My GPU usage and temps did not change. Remember this is a crunching only test machine.

Sorry my mistake, i just see on your cruched WU and don´t see any CPU work.

Was you able to locate the AP file?
ID: 1469728 · Report as offensive
Batter Up
Avatar

Send message
Joined: 5 May 99
Posts: 1946
Credit: 24,860,347
RAC: 0
United States
Message 1469730 - Posted: 27 Jan 2014, 23:07:36 UTC - in response to Message 1469728.  

[quote]
Was you able to locate the AP file?

Yes but it is empty,0kb
ID: 1469730 · Report as offensive
Profile Jeff Buck Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 11 Feb 00
Posts: 1441
Credit: 148,764,870
RAC: 0
United States
Message 1469738 - Posted: 27 Jan 2014, 23:33:41 UTC - in response to Message 1469730.  

[quote]
Was you able to locate the AP file?

Yes but it is empty,0kb

Since you're running stock and not Lunatics, I don't think you'll actually find the file that Juan mentioned. You want a file named ap_cmdline_6.04_windows_intelx86_opencl_nvidia.txt. It should be empty, but just edit it in Notepad or other text editor and create a single line with just '-hp' (without the quotes). As with the mbcuda.cfg change, there are differing opinions as to whether this makes much difference or not. I'll let the experts debate that point!
ID: 1469738 · Report as offensive
juan BFP Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 9786
Credit: 572,710,851
RAC: 3,799
Panama
Message 1469739 - Posted: 27 Jan 2014, 23:37:33 UTC - in response to Message 1469738.  
Last modified: 27 Jan 2014, 23:41:28 UTC

My sugestion to him is try to find the AP read.me file, there he will find all the avaiable options an instructions for each parameters so he could be choose what will be better to him.

Adding to Jeff post to guide you, as sugested to me by Mike on my 690 host i use:

-hp -unroll 12 -ffa_block 12288 -ffa_block_fetch 6144

Just copy and paste to the file mentioned by Jeff.

Works perfect here, that will give you an start, After you confirm it´s working you could modify the parameters to get an even better optimization.
ID: 1469739 · Report as offensive
1 · 2 · Next

Message boards : Number crunching : How do I run GPU high priority and other questions.


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.