- client: let fake CUDA specify driver version

- client: restore call to diagnostics_finish() on exit.
	(should print mem info, but doesn't)
- manager: notices display tweak 

svn path=/trunk/boinc/; revision=21759
This commit is contained in:
David Anderson 2010-06-16 21:57:28 +00:00
parent f35e3878e7
commit 6511e1f8e8
6 changed files with 24 additions and 8 deletions

View File

@ -4297,3 +4297,18 @@ Charlie 15 Jun 2010
lib/
procinfo_mac.cpp
David 16 Jun 2010
- client: let fake CUDA specify driver version
- client: restore call to diagnostics_finish() on exit.
(should print mem info, but doesn't)
- manager: notices display tweak
client/
client_state.cpp
coproc_detect.cpp
main.cpp
clientgui/
ViewNotices.cpp
lib/
coproc.h

View File

@ -274,7 +274,7 @@ int CLIENT_STATE::init() {
}
#if 0
msg_printf(NULL, MSG_INFO, "Faking an NVIDIA GPU");
host_info.coprocs.cuda.fake(256*MEGA, 2);
host_info.coprocs.cuda.fake(18000, 256*MEGA, 2);
host_info.coprocs.cuda.available_ram_fake[0] = 256*MEGA;
host_info.coprocs.cuda.available_ram_fake[1] = 192*MEGA;
#endif

View File

@ -427,13 +427,13 @@ void COPROC_CUDA::get(
// fake a NVIDIA GPU (for debugging)
//
void COPROC_CUDA::fake(double ram, int n) {
void COPROC_CUDA::fake(int driver_version, double ram, int n) {
strcpy(type, "CUDA");
count = n;
for (int i=0; i<count; i++) {
device_nums[i] = i;
}
display_driver_version = 18000;
display_driver_version = driver_version;
cuda_version = 2020;
strcpy(prop.name, "Fake NVIDIA GPU");
prop.totalGlobalMem = (unsigned int)ram;

View File

@ -342,6 +342,7 @@ static int finalize() {
gstate.free_mem();
diagnostics_finish();
gstate.cleanup_completed = true;
return 0;
}

View File

@ -172,16 +172,16 @@ void CViewNotices::OnListRender(wxTimerEvent& WXUNUSED(event)) {
sprintf(tbuf, "<b>%s</b>", np->title);
}
if (strlen(np->project_name)) {
sprintf(buf, " from %s", np->project_name);
strcat(tbuf, buf);
}
if (strlen(tbuf)) {
strcat(tbuf, "<br>");
strItems += wxString(tbuf, wxConvUTF8);
}
strItems += process_client_message(np->description.c_str());
strItems += wxT("<br><font size=-2 color=#8f8f8f>");
if (strlen(np->project_name)) {
sprintf(buf, "From %s<br>", np->project_name);
strItems += wxString(buf, wxConvUTF8);
}
dtBuffer.Set((time_t)np->arrival_time);
strItems += dtBuffer.Format();
if (strlen(np->link)) {

View File

@ -222,7 +222,7 @@ struct COPROC_CUDA : public COPROC {
void get_available_ram();
bool check_running_graphics_app();
void fake(double, int);
void fake(int driver_version, double ram, int count);
};