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

Invalid bit width in input #172

Open
maleadt opened this issue Apr 25, 2022 · 1 comment
Open

Invalid bit width in input #172

maleadt opened this issue Apr 25, 2022 · 1 comment
Labels
bug Something isn't working kernels Things about kernels and how they are compiled.

Comments

@maleadt
Copy link
Member

maleadt commented Apr 25, 2022

Reported by @michel2323:

InvalidBitWidth: Invalid bit width in input: 2                                                                                                                                                                                                                                          dspcg: Error During Test at /home/mschanen/git/ExaTronKernels.jl/test/oneAPI.jl:938                                                                                                                                                                                                       Got exception outside of a @test                                                                                                                                                                                                                                                        Failed to translate LLVM code to SPIR-V.                                                                                                                                                                                                                                                If you think this is a bug, please file an issue and attach /tmp/jl_dLIFvn.bc.                                                                                                                                                                                                          Stacktrace:                                                                                                                                                                                                                                                                               [1] error(s::String)

jl_QOvqhg.bc.zip

@maleadt
Copy link
Member Author

maleadt commented Apr 25, 2022

Reduced to:

source_filename = "text"
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir64-unknown-unknown"

define spir_kernel void @kernel() local_unnamed_addr {
top:
  %trunc = trunc i8 1 to i2
  ret void
}

@maleadt maleadt added bug Something isn't working kernels Things about kernels and how they are compiled. labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kernels Things about kernels and how they are compiled.
Projects
None yet
Development

No branches or pull requests

1 participant