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

soylentgreen

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: OpenCL - when to use it? (help and benchmark oppose each other!)
« Reply #105 on: April 22, 2014, 14:42:23 »
Which would be better in this situation:

Work size= 64
CPU= 600ms
GPU= 74ms

Work size= 512
CPU= 700ms
GPU= 150ms

The 512 GPU is still much faster than CPU. So would 512 be faster than 64 in this case?

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 #106 on: April 22, 2014, 18:16:00 »
lower values is better.
use work size 64, work size is how much separate "threads/processes" run simultaneously, it doesn't directly related to performance, different devices have different optimum value. 512 doesn't mean better 64.