OK kaptainkarl1,
Here we go.........
Because you are running two CUDA cards in the same system it made things a little harder. So after thinking it over I decided you needed a different a different approach. I have attached a zip file with the files you'll need but I'm posting the explanation to hopefully make things clear.
Here is the batch file I came up with
Code:
Title GPU Pause
@ECHO OFF
CLS
:BEGIN
"C:\Program Files\BOINC\boinccmd" --set_run_mode never 30
CHOICE /N /D Y /T 2
"C:\Program Files\BOINC\boinccmd" --quit
IF EXIST C:\ProgramData\BOINC\cc_config.xml DEL C:\ProgramData\BOINC\cc_config.xml
COPY C:\Storage\BOINC\config.2 C:\ProgramData\BOINC\cc_config.xml
CHOICE /N /D Y /T 2
start "C:\Program Files\BOINC\BOINC" --detach_console
C:\Storage\shortcuts\MyShortCut.lnk
PAUSE
"C:\Program Files\BOINC\boinccmd" --set_run_mode never 30
CHOICE /N /D Y /T 2
"C:\Program Files\BOINC\boinccmd" --quit
IF EXIST C:\ProgramData\BOINC\cc_config.xml DEL C:\ProgramData\BOINC\cc_config.xml
COPY C:\Storage\BOINC\config.1 C:\ProgramData\BOINC\cc_config.xml
CHOICE /N /D Y /T 2
start "C:\Program Files\BOINC\BOINC" --detach_console
:END
I made certain assumptions like BOINC is installed per its setup defaults, That you are running Win7 and not WinXP x32 and lastly you don't mind a few extra folders or editing text files.
Config.1 looks like this
Code:
<cc_config>
<options>
<start_delay>30</start_delay>
<network_test_url>http://www.yahoo.com/</network_test_url>
<report_results_immediately>1</report_results_immediately>
</options>
</cc_config>
And Config.2
Code:
<cc_config>
<options>
<start_delay>30</start_delay>
<network_test_url>http://www.yahoo.com/</network_test_url>
<report_results_immediately>1</report_results_immediately>
<ignore_nvidia_dev>0</ignore_nvidia_dev>
</options>
</cc_config>
Q: What does the batch file do?
A: It starts by pausing the BOINC core client (BOINC Manager is just a GUI for the core client) and then shuts it down. Next it deletes cc_config.xml and replaces it with the contents of the config.2. Now it will restart the BOINC core client and now BOINC will ignore GPU0, leaving it free to work elsewhere. The next action in the batch file is to start your Windows app.
Now after you are finished using the Windows app just click on the batch file window and press any key to allow it to undo the changes it made before and then exits.
Some things to note:
1) If you try to use the batch file on a WinXP Home Edition system it will not work right because of the DOS command "Choice". Choice does not exist in that version of Windows. I'm not sure about WinXP Pro x32.
2) If the BOINC folders are not located as indicated in the batch file then you will need to edit it accordingly.
*Example: The BOINC program folder = X:\Program Files\BOINC and BOINC Data folder = F:\NetShare\BOINC_Data
**A) Edit every occurrence of "C:\Program Files\BOINC\boinccmd" to "X:\Program Files\BOINC\boinccmd" (Keep the quote marks if any folder names have spaces ---> Program Files)
**B) Edit every occurrence of "C:\Program Files\BOINC\BOINC" to "X:\Program Files\BOINC\BOINC"
**C)Edit every occurrence of C:\ProgramData\BOINC\cc_config.xml to F:\NetShare\BOINC_Data\cc_config.xml
3) The line C:\Storage\shortcuts\MyShortCut.lnk should be edited to point to the shortcut for the app you want to use for Streaming. (Like in example "A" if any folder names have spaces then put quote marks at the beginning and end of the path string)
4) The batch command "Title" in the very first line in the batch file will display whatever comes after it in the command shell's (a.k.a. DOS Window) Title Bar. This is a handy reminder of what the window is if you have it minimized on the Windows Task Bar. And speaking of minimizing I have edited the included batch file's shortcut properties to minimize when it runs. This helps to keep the desktop uncluttered. Of course you can change its properties if you want it to behave differently.
5) The attached archive is setup to include the folder structure used in copy part of the batch file. This will spare you having to edit the batch file even more. Also included in the archive is a small collection of icons in their own folder. Use them to if you want help distinguish the batch file's DOS Window when it is minimized on the task bar. To make the change right-click on the batch file's shortcut, click properties, click "Change Icon" button and then navigate to your icon of choice and select it.
OK I'm done for now. Waaaaay more words then I thought I would use.......
Archive ---> http://www.filedropper.com/gpupause
F$