GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Opencl interop by sakchal · Pull Request #52 · arrayfire/arrayfire-binary-python-wrapper

Conversation

@sakchal

@sakchal 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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@sakchal
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.