client: clean up redundant and confusing GPU description

This commit is contained in:
Charlie Fenton 2012-12-10 06:50:44 -08:00 committed by Oliver Bock
parent 298988918c
commit 407d16a7d9
2 changed files with 5 additions and 1 deletions

View File

@ -7523,5 +7523,6 @@ Charlie 10 Dec 2012
client/
gpu_detect.cpp
gpu_opencl.cpp
lib/
coproc.cpp,.h

View File

@ -250,7 +250,9 @@ void COPROCS::get_opencl(
}
prop.opencl_device_index = device_index;
if (!nvidia.have_cuda) {
if (nvidia.have_cuda) {
prop.peak_flops = nvidia_gpus[prop.device_num].peak_flops;
} else {
COPROC_NVIDIA c;
c.opencl_prop = prop;
c.set_peak_flops();
@ -292,6 +294,7 @@ void COPROCS::get_opencl(
// See also further workaround code for Macs.
//
prop.global_mem_size = ati_gpus[prop.device_num].attribs.localRAM * MEGA;
prop.peak_flops = ati_gpus[prop.device_num].peak_flops;
} else {
if (log_flags.coproc_debug) {
msg_printf(0, MSG_INFO,