« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1972 ms

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

Source: https://github.com/arrayfire/arrayfire-binary-python-wrapper/pull/52

Repository navigation

Opencl interop - #52


Open
sakchal wants to merge 12 commits into arrayfire:master from sakchal:opencl_interop
Open

Opencl interop #52 sakchal wants to merge 12 commits into arrayfire:master from 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
Chaluvadi and others added 12 commits March 13, 2024 10:35 utility functions for tests 25fbfd0 Fixed utility function merge conflict 8c7d809 added unit tests for range function 2fbaace Readability changes to cosntants tests 1bc0f3a readability changes pt.2 bc96cbc sync() default value fix a3d0511 Merge branch 'master' of https://github.com/arrayfire/arrayfire-binar... afb263e
...y-python-wrapper
"update local master branch" 7f97198
Merge branch 'master' of https://github.com/arrayfire/arrayfire-binary-python-wrapper
added opencl functionality and tests within wrapper f84366d fixed test_opencl mypy issues 4a505dc added interop functionality and tests, edited str_to_dtype function i... 32c5bf2
...n dtypes, added opencl tests, chaged get_queue and get_context return types to void pointers
added return types for interop tests 51f16ce

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
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

1 participant