Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Opencl interop #52

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Opencl interop #52

wants to merge 12 commits into from

Conversation

sakchal
Copy link
Contributor

@sakchal sakchal commented May 2, 2024

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
Copy link
Contributor Author

sakchal commented May 8, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant