Skip to content

Refactor kernel sim for the experimental kernel#1302

Closed
chudur-budur wants to merge 16 commits intoIntelPython:mainfrom
chudur-budur:refactor/kernel-sim
Closed

Refactor kernel sim for the experimental kernel#1302
chudur-budur wants to merge 16 commits intoIntelPython:mainfrom
chudur-budur:refactor/kernel-sim

Conversation

@chudur-budur
Copy link
Contributor

@chudur-budur chudur-budur commented Feb 1, 2024

This WIP refactors kernel-sim for the new experimental kernel. This is based on #992 and will supercede #992.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@chudur-budur chudur-budur self-assigned this Feb 1, 2024
@chudur-budur chudur-budur force-pushed the refactor/kernel-sim branch 2 times, most recently from b07bee4 to d546001 Compare February 6, 2024 10:43
@chudur-budur chudur-budur force-pushed the refactor/kernel-sim branch 3 times, most recently from 1069a87 to 3733e1f Compare February 7, 2024 08:39
@chudur-budur chudur-budur force-pushed the refactor/kernel-sim branch 2 times, most recently from 777194e to 4644569 Compare February 7, 2024 10:24
@chudur-budur chudur-budur marked this pull request as ready for review February 7, 2024 10:25
@chudur-budur
Copy link
Contributor Author

@diptorupd I think it's good to go.

@chudur-budur chudur-budur force-pushed the refactor/kernel-sim branch 2 times, most recently from 4ebdfe5 to c280ec7 Compare February 7, 2024 18:52
Adding docstrings

Pylint fixes

Fix pylint issues

More pylint fixes
@diptorupd
Copy link
Contributor

diptorupd commented Feb 11, 2024

@chudur-budur Thank you for the PR. However, the approach in your simulator implementation does not work with the kernel_api mock SYCL classes that has been implemented in numba-dpex.

I have added kernel executors in #1326 for Range and NdRange kernels that serve the purpose of executing the pure Python mock kernels. The kernel launcher does not yet support barriers, I will perhaps add that at a later date borrowing ideas from @Hardcode84's use of the greenlet package.

I am closing this PR.

@diptorupd diptorupd closed this Feb 11, 2024
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.

3 participants