Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NHDaly/bf18263fdee4d78bae5c4e1de8ad7208 to your computer and use it in GitHub Desktop.
Save NHDaly/bf18263fdee4d78bae5c4e1de8ad7208 to your computer and use it in GitHub Desktop.
Example of choosing which OpenCL device to use in GPUArray.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NHDaly
Copy link
Author

NHDaly commented Jul 22, 2017

  • Not sure why the unsafe_string errors keep coming up?
  • Not sure why each device seems to be slower than the last. My guess is because this isn't actually a very beefy GPU operation, so most of the latency comes from transporting the data from the cpu to the GPU, and the rp460 is (i guess) farther away from the CPU?

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