- 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
This commit is contained in:
Rom Walton 2012-09-10 17:56:09 +00:00
parent a02ceae225
commit 2882d5bc29
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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;