FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Opencl interop by sakchal · Pull Request #52 · arrayfire/arrayfire-binary-python-wrapper · GitHub

Repository navigation

Opencl interop - #52

Open
sakchal wants to merge 12 commits into
arrayfire:masterfrom
sakchal:opencl_interop
Open

sakchal wants to merge 12 commits into
arrayfire:masterfrom
sakchal:opencl_interop

Conversation

sakchal commented May 2, 2024

Copy link
Copy Markdown
Contributor

This PR introduces a suite of functions for the OpenCL specific function seen in the documentation. These functions written are the wrapper functions for the original C functions, and will be helping implement the OpenCL specific functions in the higher level. Additionally, this PR features the first commit that sets up the OpenCL interface functions, but future commits will also help solve the OpenCL interoperability functionality present in much of the

Introduces several functions such as:

  • get_context
  • get_queue
  • get_device_id
  • set_device_id
  • add_device_context
  • delete_device_context
  • get_device_type
  • get_platform

sakchal commented May 8, 2024

Copy link
Copy Markdown
Contributor Author

Along with the initial pull request, I added another file within the "interface functions" directory titled interop.py along with some brief tests for the functions.

Within the interop.py file, lie several functions to ensure the interoperability of arrayfire and other libraries (numpy and pyopencl as of now):

  • numpy_to_af_array
  • af_to_numpy_array
  • pyopencl_to_af_array

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL