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

Subcube elect doesn't work with wgpu #254

Open
maxtremblay opened this issue Nov 12, 2024 · 0 comments
Open

Subcube elect doesn't work with wgpu #254

maxtremblay opened this issue Nov 12, 2024 · 0 comments

Comments

@maxtremblay
Copy link
Contributor

Part of the solution seems to be to replace the beginning of the current Display implementation in cubecl-wpgu/src/compiler/wgsl/subgroup.rs for Subgroup with

impl Display for Subgroup {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Subgroup::Elect { out } => {
                let out = out.fmt_left();
                writeln!(f, "{out} = subgroupElect();")
            }
            // ...

However, I still get the following error

caused by:
  In Device::create_shader_module

Shader '' parsing error: no definition in scope for identifier: 'subgroupElect'
   ┌─ wgsl:28:10
   │
28 │ let _2 = subgroupElect();
   │          ^^^^^^^^^^^^^ unknown identifier


      no definition in scope for identifier: 'subgroupElect'
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

1 participant