Author Topic: OpenCL - when to use it? (help and benchmark oppose each other!)  (Read 50995 times)

ektorbarajas

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
    • DJ ektorbarajas
OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #315 on: March 14, 2013, 23:10:37 »
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

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
    • DJ ektorbarajas
Re: OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #316 on: March 15, 2013, 18:53:04 »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 664
    • View Profile
    • https://www.smilarityapp.com
Re: OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #317 on: March 15, 2013, 20:31:57 »
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

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
    • DJ ektorbarajas
Re: OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #318 on: March 15, 2013, 20:51:53 »
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


« Last Edit: March 20, 2013, 20:17:22 by ektorbarajas »

Admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 664
    • View Profile
    • https://www.smilarityapp.com
Re: OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #319 on: March 16, 2013, 13:49:34 »
yes, it's not fully correct "lower" in this context means higher time results. We correct it in next releases.