Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Last active March 5, 2019 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhitehorn/e59cf0f461f56ea90b77e925276d5ceb to your computer and use it in GitHub Desktop.
Save jwhitehorn/e59cf0f461f56ea90b77e925276d5ceb to your computer and use it in GitHub Desktop.
opencl_context = cl.create_some_context()
opencl_queue = cl.CommandQueue(opencl_context)
opencl_kernel = open('./opencl/calculate_error_double.cl', 'r').read()
opencl_program = cl.Program(self.opencl_context, opencl_kernel).build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment