mirror of https://github.com/BOINC/boinc.git
client: if available, use GPU model name from CAL for OpenCL model name
svn path=/trunk/boinc/; revision=25757
This commit is contained in:
parent
3a2328b10d
commit
7add13f1af
|
@ -4309,3 +4309,11 @@ David 13 June 2012
|
|||
|
||||
sched/
|
||||
sched_types.cpp
|
||||
|
||||
Charlie 13 June 2012
|
||||
- client: Reverse my logic of 16 Feb 2012: we now always use GPU model
|
||||
name determined from CAL TargetID (if available) for OpenCL model
|
||||
name of ATI / AMD GPUs because (we believe) it is more user-friendly.
|
||||
|
||||
client/
|
||||
coproc_detect.cpp
|
||||
|
|
|
@ -408,13 +408,13 @@ void COPROCS::get_opencl(
|
|||
|
||||
if (ati.have_cal) {
|
||||
if (prop.device_num < (int)(ati_gpus.size())) {
|
||||
// Always use GPU model name from OpenCL if available
|
||||
// Always use GPU model name from CAL if available
|
||||
// for ATI / AMD GPUs because
|
||||
// (we believe) it is more reliable and user-friendly.
|
||||
// (we believe) it is more user-friendly.
|
||||
// Assumes OpenCL and CAL return the devices
|
||||
// in the same order
|
||||
//
|
||||
strcpy(ati_gpus[prop.device_num].name, prop.name);
|
||||
strcpy(prop.name, ati_gpus[prop.device_num].name);
|
||||
|
||||
// Work around a bug in OpenCL which returns only
|
||||
// 1/2 of total global RAM size: use the value from CAL.
|
||||
|
|
Loading…
Reference in New Issue