-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Windows) GPU detection fails when started from command line #2029
Comments
Is PR #2036 a fix for this problem? |
Seeing how PR#2036 was added to Master, I updated my local repository and built a new client and manager from Master. Then ran those from the command line, with
|
Oops -
and GPU detection works. Launch with 'boinc.exe' also good. |
Retested for confirmation with v7.12.1: solution working correctly. Closing / complete |
Previous reference https://lists.ssl.berkeley.edu/pipermail/boinc_alpha/2017-July/021908.html
If the client is started from the Windows command line with
prompt>boinc --detach_console
GPU detection fails, and any previous coproc_info.xml file is deleted.
Starting the client with
prompt>boinc.exe --detach_console
allows GPUs to be detected and used as normal.
Changing the commandLine used in
https://github.com/BOINC/boinc/blob/master/client/main.cpp#L488
to use an explicit .exe extension also solves the problem - as was found by the author of https://github.com/BOINC/boinc/blob/master/client/gpu_detect.cpp#L640 (though I prefer the idea of passing the command line here too, rather than hard-coding the executable name)
Tests reconfirmed with code as at the v7.8.1 tag.
The text was updated successfully, but these errors were encountered: