mirror of https://github.com/BOINC/boinc.git
- 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:
parent
a02ceae225
commit
2882d5bc29
|
@ -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
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue