Skip to content
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

Closed
RichardHaselgrove opened this issue Aug 13, 2017 · 4 comments
Closed

Comments

@RichardHaselgrove
Copy link
Contributor

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.

@Ageless93
Copy link
Contributor

Ageless93 commented Aug 15, 2017

Is PR #2036 a fix for this problem?

@Ageless93
Copy link
Contributor

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 boinc --detach_console, and got this:

20-Aug-2017 00:21:39 [---] Starting BOINC client version 7.8.3 for windows_x86_64 (DEBUG)
20-Aug-2017 00:21:39 [---] This a development version of BOINC and may not function properly
20-Aug-2017 00:21:39 [---] log flags: file_xfer, sched_ops, task, benchmark_debug, checkpoint_debug
20-Aug-2017 00:21:39 [---] log flags: cpu_sched, file_xfer_debug, sched_op_debug, task_debug
20-Aug-2017 00:21:39 [---] Libraries: libcurl/7.42.1 OpenSSL/1.0.2a zlib/1.2.8
20-Aug-2017 00:21:39 [---] Data directory: M:\ProgramData\BOINC
20-Aug-2017 00:21:39 [---] Running under account Ageless
20-Aug-2017 00:21:39 [---] Project for statistics_abcathome.com.xml not found - ignoring
20-Aug-2017 00:21:39 [---] Project for statistics_albert.phys.uwm.edu.xml not found - ignoring
20-Aug-2017 00:21:39 [---] Project for statistics_aqua.dwavesys.com.xml not found - ignoring
20-Aug-2017 00:21:39 [---] Project for statistics_convector.fsv.cvut.cz.xml not found - ignoring
20-Aug-2017 00:21:39 [---] Project for statistics_dnahome.cs.rpi.edu_dna.xml not found - ignoring
20-Aug-2017 00:21:39 [---] Project for statistics_www.chess960athome.org_alpha.xml not found - ignoring
20-Aug-2017 00:21:39 [---] No usable GPUs found
20-Aug-2017 00:21:39 [SETI@home] Found app_info.xml; using anonymous platform
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI
20-Aug-2017 00:21:39 [---] app version refers to missing GPU type ATI

@Ageless93 Ageless93 added this to Backlog in Client and Manager via automation Nov 11, 2017
@RichardHaselgrove
Copy link
Contributor Author

RichardHaselgrove commented Jan 31, 2018

Oops - still broken in v7.9.0 oops again, forgot I'd reverted to v7.8.3 after previous test. v7.9.0 (master clone 30 Jan 2018) is OK: launching with 'boinc' generates

01/02/2018 12:12:58 |  | [coproc] launching child process at boinc.exe
01/02/2018 12:12:58 |  | [coproc] relative to directory D:\BOINC
01/02/2018 12:12:58 |  | [coproc] with data directory "D:\BOINCdata"

and GPU detection works. Launch with 'boinc.exe' also good.

@RichardHaselgrove RichardHaselgrove moved this from Review to Testing in Client Release 7.10 Feb 7, 2018
@RichardHaselgrove
Copy link
Contributor Author

Retested for confirmation with v7.12.1: solution working correctly. Closing / complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants