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

Does gpu.cpp support f64 or i64? #45

Open
ghostplant opened this issue Aug 12, 2024 · 4 comments
Open

Does gpu.cpp support f64 or i64? #45

ghostplant opened this issue Aug 12, 2024 · 4 comments

Comments

@ghostplant
Copy link

I wrote some kernels based on this framework, and I found datatypes for f64 and i64 are not defined.

@MichealReed
Copy link
Contributor

Looks like float32 and halfs, maybe a contribution could be added to https://github.com/AnswerDotAI/gpu.cpp/tree/main/numeric_types for f64?

@ghostplant
Copy link
Author

I don't think so. Unlike f16, datatype f64 is not defined in dawn so maybe more contribution should be in dawn?

@MichealReed
Copy link
Contributor

Thanks for investigating. Maybe you could reach out to the author here to ask about contributing this?

https://developer.chrome.com/blog/new-in-webgpu-120

Dawn uses Gerrit here

https://dawn-review.googlesource.com/q/status:open+-is:wip

I have not even begun to digest their roadmap though.

@MichealReed
Copy link
Contributor

MichealReed commented Aug 13, 2024

Well, seems wgsl doesn't support f64 yet? https://webgpufundamentals.org/webgpu/lessons/webgpu-wgsl-function-reference.html

seems possible gfx-rs/wgpu#1154

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