Message boards :
Number crunching :
Setting GPU Task Priority
Message board moderation
Author | Message |
---|---|
Terror Australis Send message Joined: 14 Feb 04 Posts: 1817 Credit: 262,693,308 RAC: 44 ![]() ![]() |
I'm conducting an experiment using a Virtual Machine and running CUDA on the host machine at the same time. I found, that to make it work, the CUDA app has to have the same CPU priority or higher as the VM program (VMWare Player) otherwise the CUDA processing time blows right out. The problem is, I can set the CUDA tasks to "Normal" priority or the VM to "Low". However when CUDA starts a new task it goes back to "Below Normal" priority. If I set the VM to "Low" things work ok as long as the VM is running in the background. However as soon I maximise it, it jumps back to "Normal" and pinches all the CPU cycles from CUDA. I've tried using Prio to lock the priorities but both CUDA and the VM player are able to overide it and go back to their original settings. How can I lock both programs to the settings I want, not the settings they think they should have. TIA T.A. |
kittyman ![]() ![]() ![]() ![]() Send message Joined: 9 Jul 00 Posts: 51502 Credit: 1,018,363,574 RAC: 1,004 ![]() ![]() |
I'm conducting an experiment using a Virtual Machine and running CUDA on the host machine at the same time. Not sure how you could lock the priority setting of the VM, but Fred has a priority program to allow you to set the GPU task priority. You could set it to a notch above the VM and see if that works. I can't find a link to it right now, I downloaded it a long while back. I will see if I can find you a link. "Time is simply the mechanism that keeps everything from happening all at once." ![]() |
kittyman ![]() ![]() ![]() ![]() Send message Joined: 9 Jul 00 Posts: 51502 Credit: 1,018,363,574 RAC: 1,004 ![]() ![]() |
Try the information in this thread. Meow. "Time is simply the mechanism that keeps everything from happening all at once." ![]() |
Terror Australis Send message Joined: 14 Feb 04 Posts: 1817 Credit: 262,693,308 RAC: 44 ![]() ![]() |
Thanks Kittyman I found Fred's program and read the thread you linked. Trying to make it work now :-) T.A. |
kittyman ![]() ![]() ![]() ![]() Send message Joined: 9 Jul 00 Posts: 51502 Credit: 1,018,363,574 RAC: 1,004 ![]() ![]() |
Thanks Kittyman May kitty paws help you sort it. Meow. It does work on the couple of rigs I have it loaded on.... Not sure whether, in my case, it really does any good. But task manager confirms that when I have set the GPU tasks to high priority, they run as so. "Time is simply the mechanism that keeps everything from happening all at once." ![]() |
Terror Australis Send message Joined: 14 Feb 04 Posts: 1817 Credit: 262,693,308 RAC: 44 ![]() ![]() |
Hmmmm. No Joy It doesn't seem to be working :-( I put the full path to the CUDA app in and selected "Set Above" but Task Manager still shows the CUDA app as "Below Normal". Tried a reboot and restart of BOINC etc. Still no joy. It's not showing anything in the graph either. Kittyman, Were there any special tricks you had to use to get it going ? |
Jamie Send message Joined: 5 Apr 06 Posts: 162 Credit: 9,867,955 RAC: 0 ![]() |
Thanks Kittyman If that doesn't work for you, try Process Lasso http://www.bitsum.com/prolasso.php, its what I use to keep ATI and cuda tasks from using the same CPU, you can set both the priority and affinity of the task. If you turn 'Forced mode' it will recheck the process every few seconds and make sure it runs to at the priority you set |
kittyman ![]() ![]() ![]() ![]() Send message Joined: 9 Jul 00 Posts: 51502 Credit: 1,018,363,574 RAC: 1,004 ![]() ![]() |
Hmmmm. No Joy No, but a lot of time has passed since when I first downloaded and tried it...... Sorry, but I can't give you any other hints....... If you can describe the problems you have running it, you might PM Fred himself to see if he has any more insights. I did the best I could, bud. Meow. "Time is simply the mechanism that keeps everything from happening all at once." ![]() |
![]() ![]() Send message Joined: 2 Jun 99 Posts: 835 Credit: 33,540,164 RAC: 0 ![]() |
TA with freds priority thread app just put the full name of the cuda app with .exe on end as it appears in task manager without the path as its looking for a running application name in process list works fine for me you could also lower the priority of the vm as well if needed Tim ![]() |
![]() Send message Joined: 6 Apr 07 Posts: 7105 Credit: 147,663,825 RAC: 5 ![]() |
Hmmmm. No Joy Don't make it more complicated as it is.. ;-) Insert only the completely CUDA app .exe name and you're fine. I inserted there setiathome_6.09_windows_intelx86__cuda23.exe (for stock MB_6.09_cuda23_app) and it work nicely. Thanks again Fred for your nice tool! http://www.efmer.eu/forum_tt/index.php?topic=198.0 EDIT: Tim was little bit quicker.. ;-) ![]() |
Terror Australis Send message Joined: 14 Feb 04 Posts: 1817 Credit: 262,693,308 RAC: 44 ![]() ![]() |
@ Tim and Sutaro Thanks very much !! Problem solved !! Guess I was just being too careful putting the full path in. Never thought about it looking for a process rather than an exe. TGIF :-P T.A. |
©2025 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.