Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add OpenCL runtime #796

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add OpenCL runtime #796

wants to merge 10 commits into from

Conversation

Menooker
Copy link

@Menooker Menooker commented Jun 28, 2024

This is a PR still work-in-progress. I have added opencl-runtime in some of the runner tests. It seems to work well. Todo:

  • Polish error-handling
  • OpenCL distinguishes pointer args with non-pointer args. I need to check if an arg is pointer every time the kernel is called. Is there any way to bypass it?
  • add opencl-runtime in most of runner tests.
  • large GRF
  • kernel profiling (might not be included in this PR)

Mei, Yijie added 2 commits June 28, 2024 05:58
@silee2 silee2 self-requested a review June 28, 2024 16:46
@silee2
Copy link
Contributor

silee2 commented Jun 28, 2024

I know that the PR is still WIP but left some small comments. Mostly about name usage.

@Menooker
Copy link
Author

Menooker commented Jul 1, 2024

I know that the PR is still WIP but left some small comments. Mostly about name usage.

Thanks for the comments. I have updated the code now. Those names were copy-pasted from L0 wrapper and I have now changed them accordingly. I have added opencl-runtime for most of the UTs. And I found some of the tests failing. Still working on it...

@Menooker Menooker changed the title [WIP] Add OpenCL runtime Add OpenCL runtime Jul 2, 2024
@Menooker
Copy link
Author

Menooker commented Jul 2, 2024

Removed the "WIP" status and this PR is ready to review. Added additional RUN in UTs for OpenCL runtime.

And I found some of the tests failing. Still working on it...

The error ends up the wrong setting of WG size. L0, Sycl and Ocl have different ways to set the WG size and x/y/x orders. :(

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.

2 participants