From b163be097f87a9b5d8165756e567a6b2f74b00ff Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 10 Mar 2008 20:54:08 +0000 Subject: [PATCH] - client: win compile fixes svn path=/trunk/boinc/; revision=14877 --- lib/coproc.C | 9 ++++----- win_build/libboinc.vcproj | 8 ++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/coproc.C b/lib/coproc.C index 69db4338f7..328f383be8 100644 --- a/lib/coproc.C +++ b/lib/coproc.C @@ -36,7 +36,6 @@ void COPROC_CUDA::get(COPROCS& coprocs) { void (*__cudaGetDeviceCount)( int * ); void (*__cudaGetDeviceProperties) ( cudaDeviceProp*, int ); int count; - cudaDeviceProp prop; #ifdef _WIN32 HMODULE cudalib = GetModuleHandle("cudart.dll"); @@ -76,8 +75,8 @@ void COPROC_CUDA::write_xml(FILE* f) { " %d\n" " %u\n" " %d\n" - " %d\n" - " %d\n" + " %d %d %d\n" + " %d %d %d\n" " %u\n" " %d\n" " %d\n" @@ -91,8 +90,8 @@ void COPROC_CUDA::write_xml(FILE* f) { prop.warpSize, prop.memPitch, prop.maxThreadsPerBlock, - prop.maxThreadsDim, - prop.maxGridSize, + prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2], + prop.maxGridSize[0], prop.maxGridSize[1], prop.maxGridSize[2], prop.totalConstMem, prop.major, prop.minor, diff --git a/win_build/libboinc.vcproj b/win_build/libboinc.vcproj index 389cc9b2ce..21bf0ceac9 100644 --- a/win_build/libboinc.vcproj +++ b/win_build/libboinc.vcproj @@ -477,6 +477,10 @@ RelativePath="..\lib\base64.C" > + + @@ -715,6 +719,10 @@ RelativePath="..\lib\boinc_win.h" > + +