From ca516450e46b2f3188447cc55ba3669bef82e007 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 28 Mar 2008 20:20:10 +0000 Subject: [PATCH] - some debugging code svn path=/trunk/boinc/; revision=14980 --- checkin_notes | 7 +++++++ client/client_state.C | 3 +++ lib/coproc.C | 29 ++++++++++++++++++++++++++++- lib/coproc.h | 2 ++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index b0e759f464..d4ed000081 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2790,3 +2790,10 @@ David Mar 28 2008 sched/ sched_send.C + +David Mar 28 2008 + - some debugging code + client/ + client_state.C + lib/ + coproc.C,h diff --git a/client/client_state.C b/client/client_state.C index c4074a58c1..e5e1a1ced9 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -239,6 +239,9 @@ int CLIENT_STATE::init() { show_host_info(); coprocs.get(); +#if 0 + fake_cuda(coprocs); +#endif for (i=0; i\n" @@ -107,7 +133,8 @@ void COPROC_CUDA::write_xml(FILE* f) { " %d\n" " %d\n" " %d\n" - " %u\n", + " %u\n" + "\n", count, prop.name, (unsigned int)prop.totalGlobalMem, diff --git a/lib/coproc.h b/lib/coproc.h index b0e0412c16..d240e7667e 100644 --- a/lib/coproc.h +++ b/lib/coproc.h @@ -73,4 +73,6 @@ struct COPROC_CELL_SPE : public COPROC { virtual ~COPROC_CELL_SPE(){} }; +void fake_cuda(COPROCS&); + #endif