General Category > General
OpenCL - when to use it? (help and benchmark oppose each other!)
ektorbarajas:
Hi.
I noticed that when running an OpenCL benchmark, the results are expressed in speed (ms) for example:
CPU Speed (1 Core): 281ms
OpenCL Device Speed: 78ms
According to this, then OpenCL must be enabled since openCL is faster than 1 CPU Core,
BUT the online help says the opposite:
"Don’t turn on OpenCL acceleration if the results of OpenCL benchmark are lower than processor’s benchmark, because this will increase overhead costs due to increased expenses for data transfer to the OpenCL device. "
So what is the correct statement?
Thanks
ektorbarajas:
Also I'd appreciate to clarify this:
On the parameter "Work Group Size", higher numbers are better? so if a device supports 1024 then it's better 1024 than 64?
Thanks
Admin:
Benchmarking doesn't count transfer time, it only shows pure math power. In your situation your OpenCL more powerful when your CPUs you can enable it.
Work size hasn't simple best value, try use different values and benchmark, some video cards hast best values in 128 some in 64.
ektorbarajas:
So the rule of thumb is that if a benchmark throws the OpenCL speed lower than 1 CPU cure, then OpenCL should be used?
For example:
CPU Speed (1 Core): 281ms
OpenCL Device Speed: 78ms
menas that there is a real benefit enabilg OpenCL
While
CPU Speed (1 Core): 581ms
OpenCL Device Speed: 754ms
means that OpenCL MUST NOT BE enabled?
Then indeed the help statement is wrong:
"Don’t turn on OpenCL acceleration if the results of OpenCL benchmark are lower than processor’s benchmark, because this will increase overhead costs due to increased expenses for data transfer to the OpenCL device. "
Regards
Admin:
yes, it's not fully correct "lower" in this context means higher time results. We correct it in next releases.
Navigation
[0] Message Index
[#] Next page
Go to full version