From 2882d5bc2980047ca78260dadf8e752cac0bdb8e Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 10 Sep 2012 17:56:09 +0000 Subject: [PATCH] - client: initialize memfree and memtotal before use for Nvidia cards. It appears that the Nvidia API was only setting 32-bits of the 64-bit value. The remaining 32-bits were whatever was on the stack. client/ gpu_nvidia.cpp svn path=/trunk/boinc/; revision=26084 --- checkin_notes | 9 +++++++++ client/gpu_nvidia.cpp | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 302c19f26b..834543e014 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5911,3 +5911,12 @@ Charlie 8 Sep 2012 client/ gpu_opencl.cpp + +Rom 10 Sept 2012 + - client: initialize memfree and memtotal before use for Nvidia + cards. It appears that the Nvidia API was only setting 32-bits + of the 64-bit value. The remaining 32-bits were whatever + was on the stack. + + client/ + gpu_nvidia.cpp \ No newline at end of file diff --git a/client/gpu_nvidia.cpp b/client/gpu_nvidia.cpp index bd70caf364..220dea4b9b 100644 --- a/client/gpu_nvidia.cpp +++ b/client/gpu_nvidia.cpp @@ -382,7 +382,7 @@ void COPROC_NVIDIA::get( // void COPROC_NVIDIA::get_available_ram() { int retval; - size_t memfree, memtotal; + size_t memfree = 0, memtotal = 0; int device; void* ctx;