Skip to content

Instantly share code, notes, and snippets.

@kaushikcfd
Last active September 14, 2017 15:58
Show Gist options
  • Save kaushikcfd/ac1e71c5ddf54c347e3911b757b03758 to your computer and use it in GitHub Desktop.
Save kaushikcfd/ac1e71c5ddf54c347e3911b757b03758 to your computer and use it in GitHub Desktop.

I was trying to understand the advantages of chaning the local work group sizes in order to check its advantagees. Here are the results for a simple program which only takes in a random array, doubles it and returns. It also records the time needed for the whole operation.

The following plot explains the results for the various devices. Comparison of advantage of threads over various devices

I don't get a few things:

  • Exact explanation of threads.
  • Why does the speedup increase in the case of increasing threads for CPU
  • What is the difference between POCL and Intel. I think that one of them is an implementation by Intel itslelf and PoCL is and implementation for OpenCL for CPU.

Finally I don't get how to abort the program running on a GPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment