- client: show GPU exclusions at startup

(need to do this after reading the state file,
		since GPU exclusions refer to projects).
	- client: fix bug that added garbage <coproc> element
		to <app_version> in state file when using GPU exclusions


svn path=/trunk/boinc/; revision=24522
This commit is contained in:
David Anderson 2011-11-03 22:27:20 +00:00
parent a95c8a3858
commit 15b5e6e6a7
4 changed files with 20 additions and 7 deletions

View File

@ -8061,3 +8061,15 @@ David 3 Nov 2011
samples/wrapper/
wrapper.cpp
David 3 Nov 2011
- client: show GPU exclusions at startup
(need to do this after reading the state file,
since GPU exclusions refer to projects).
- client: fix bug that added garbage <coproc> element
to <app_version> in state file when using GPU exclusions
client/
client_types.cpp
client_state.cpp
log_flags.cpp

View File

@ -323,7 +323,6 @@ int CLIENT_STATE::init() {
);
}
config.show();
log_flags.show();
msg_printf(NULL, MSG_INFO, "Libraries: %s", curl_version());
@ -377,7 +376,7 @@ int CLIENT_STATE::init() {
msg_printf(NULL, MSG_INFO, "%s", warnings[i].c_str());
}
}
#if 0
#if 1
msg_printf(NULL, MSG_INFO, "Faking an NVIDIA GPU");
coprocs.nvidia.fake(18000, 512*MEGA, 490*MEGA, 1);
#endif
@ -433,6 +432,11 @@ int CLIENT_STATE::init() {
//
parse_state_file();
// this needs to go after parse_state_file because
// GPU exclusions refer to projects
//
config.show();
// inform the user if there's a newer version of client
//
newer_version_startup_check();

View File

@ -1385,7 +1385,7 @@ int APP_VERSION::write(MIOFILE& out, bool write_file_info) {
gpu_usage.usage
);
}
if (missing_coproc) {
if (missing_coproc && strlen(missing_coproc_name)) {
out.printf(
" <coproc>\n"
" <type>%s</type>\n"

View File

@ -502,10 +502,7 @@ void process_gpu_exclusions() {
}
if (found) continue;
avp->missing_coproc = true;
msg_printf(avp->project, MSG_INFO,
"All GPUs excluded for %s %d (%s)",
avp->app->name, avp->version_num, avp->plan_class
);
strcpy(avp->missing_coproc_name, "");
for (j=0; j<gstate.results.size(); j++) {
RESULT* rp = gstate.results[j];
if (rp->avp != avp) continue;