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" > + +