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;