From 6d52e2f4a42c29fa4341eeabbb42e9b7a233ecf4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Dec 2008 19:33:30 +0000 Subject: [PATCH] - scheduler: CUDA fix svn path=/trunk/boinc/; revision=16727 --- lib/coproc.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 44d27f9480..847453afef 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -299,11 +299,13 @@ void COPROC_CUDA::clear() { prop.maxGridSize[0] = 0; prop.maxGridSize[1] = 0; prop.maxGridSize[2] = 0; + prop.clockRate = 0; prop.totalConstMem = 0; prop.major = 0; prop.minor = 0; - prop.clockRate = 0; prop.textureAlignment = 0; + prop.deviceOverlap = 0; + prop.multiProcessorCount = 0; } int COPROC_CUDA::parse(FILE* fin) { @@ -346,11 +348,13 @@ int COPROC_CUDA::parse(FILE* fin) { } continue; } + if (parse_int(buf, "", prop.clockRate)) continue; if (parse_int(buf, "", (int&)prop.totalConstMem)) continue; if (parse_int(buf, "", prop.major)) continue; if (parse_int(buf, "", prop.minor)) continue; - if (parse_int(buf, "", prop.clockRate)) continue; if (parse_int(buf, "", (int&)prop.textureAlignment)) continue; + if (parse_int(buf, "", prop.deviceOverlap)) continue; + if (parse_int(buf, "", prop.multiProcessorCount)) continue; } return ERR_XML_PARSE; }