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 lowerkernel CPU backend #278

Closed
wsmoses opened this issue Jan 26, 2025 · 2 comments
Closed

Add lowerkernel CPU backend #278

wsmoses opened this issue Jan 26, 2025 · 2 comments

Comments

@wsmoses
Copy link
Member

wsmoses commented Jan 26, 2025

For debugging ln a cuda less machine having a cpu backend to the kernels call op would be useful

We can basically just make a new funx with outermost parallel fors for block and thread, then similarly jit compile it and insert into a custom call expr

For now that should suffice if there's no shmem or sync, we can do a polygeist style lowering after GB

@vchuravy
Copy link
Member

The better way is likely to go to SPIR-V and OpenCL+POCL. A COU backend as you describe is still tricky since you need to forward variables between the loops.

@wsmoses
Copy link
Member Author

wsmoses commented Jan 28, 2025

without sync/shmem there's only one loop nest, so there shoulod be no need to forward any variables

@wsmoses wsmoses closed this as completed Feb 2, 2025
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

No branches or pull requests

2 participants