Skip to content

How good is code sharing between CPU and GPU? #250

Answered by LegNeato
Telokis asked this question in Q&A

You must be logged in to vote

You can see this section and the code for this blog post:

https://rust-gpu.github.io/blog/optimizing-matmul/#running-and-debugging-shaders-on-the-cpu

As it runs the kernels on CPU for testing and GPU for "production".

You can also check out these projects, all of which run on both GPU and CPU. Sometimes just partly for debugging, sometimes the full thing does:

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@Telokis

Answer selected by Telokis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants