Skip to content

Commit

Permalink
- client: initialize memfree and memtotal before use for Nvidia
Browse files Browse the repository at this point in the history
        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
  • Loading branch information
romw committed Sep 10, 2012
1 parent a02ceae commit 2882d5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion client/gpu_nvidia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2882d5b

Please sign in to comment.