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

[FEAT] Remove unnecessary data copying in WebGPU. #5

Open
Sh-Zh-7 opened this issue May 21, 2022 · 0 comments
Open

[FEAT] Remove unnecessary data copying in WebGPU. #5

Sh-Zh-7 opened this issue May 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Sh-Zh-7
Copy link
Member

Sh-Zh-7 commented May 21, 2022

For convenience, current implementation of WebGPU backend copys data every time when executing a operator.
HPC is all about data movement. It's hard to imagine how much time we spent on these useless data movement.
Consider replace data field with WebGPU buffer type member in WebGPU tensor definition.
And computePass() function should be modified as well, never copy back result back in its end.

@Sh-Zh-7 Sh-Zh-7 added the enhancement New feature or request label May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant