From d6fa3f4f22c509625ff510995770c65df47b689c Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 10 Sep 2009 22:06:20 +0000 Subject: [PATCH] client: don't display processor cache if we don't know it; skip ATI stuff on Macs. svn path=/trunk/boinc/; revision=19040 --- client/client_state.cpp | 10 ++++++---- lib/coproc.cpp | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/client_state.cpp b/client/client_state.cpp index a786a40315..d641b0b828 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -168,10 +168,12 @@ void CLIENT_STATE::show_host_info() { "Processor: %d %s %s", host_info.p_ncpus, host_info.p_vendor, host_info.p_model ); - msg_printf(NULL, MSG_INFO, - "Processor: %s cache", - buf - ); + if (host_info.m_cache > 0) { + msg_printf(NULL, MSG_INFO, + "Processor: %s cache", + buf + ); + } msg_printf(NULL, MSG_INFO, "Processor features: %s", host_info.p_features ); diff --git a/lib/coproc.cpp b/lib/coproc.cpp index b087d78151..be63ab3b45 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -126,7 +126,9 @@ void COPROCS::summary_string(char* buf, int len) { vector COPROCS::get(bool use_all) { vector strings; COPROC_CUDA::get(*this, strings, use_all); +#ifndef __APPLE__ // ATI does not yet support CAL on Macs COPROC_ATI::get(*this, strings); +#endif return strings; }