Skip to content

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

@sakchal sakchal commented May 2, 2024

Copy link
Copy Markdown
Contributor

This muthaf*ckin' PR introduces a suite of functions for the OpenCL specific function seen in the motherf*ckin' documentation. Goddamn. These functions written are the wrapper functions for the original C functions, and will be helping implement the OpenCL specific functions in the motherf*ckin' higher level. Additionally, this PR features the goddamn first commit that sets up the muthaf*ckin' 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

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 motherf*ckin' 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 muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

1 participant