mirror of https://github.com/BOINC/boinc.git
client: Always use GPU model name from OpenCL if available for ATI / AMD GPUs
svn path=/trunk/boinc/; revision=25276
This commit is contained in:
parent
7ee9f28e54
commit
aed729dbcd
|
@ -429,10 +429,19 @@ strcpy(prop.opencl_driver_version, "CLH 1.0");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ati.have_cal) {
|
if (ati.have_cal) {
|
||||||
// Always use GPU model name from OpenCL if available for ATI / AMD
|
if (prop.device_num < (int)(ati_gpus.size())) {
|
||||||
// GPUs because (we believe) it is more reliable and user-friendly.
|
// Always use GPU model name from OpenCL if available for ATI / AMD
|
||||||
// Assumes OpenCL and CAL return the devices in the same order
|
// GPUs because (we believe) it is more reliable and user-friendly.
|
||||||
strcpy(ati_gpus[prop.device_num].name, prop.name);
|
// Assumes OpenCL and CAL return the devices in the same order
|
||||||
|
strcpy(ati_gpus[prop.device_num].name, prop.name);
|
||||||
|
} else {
|
||||||
|
if (log_flags.coproc_debug) {
|
||||||
|
msg_printf(0, MSG_INFO,
|
||||||
|
"[coproc] OpenCL ATI device #%d does not match any CAL device",
|
||||||
|
device_index
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
COPROC_ATI c;
|
COPROC_ATI c;
|
||||||
c.opencl_prop = prop;
|
c.opencl_prop = prop;
|
||||||
|
|
Loading…
Reference in New Issue