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

InvalidBitWidth: Invalid bit width in input: 56 #2823

Open
pvelesko opened this issue Oct 31, 2024 · 1 comment
Open

InvalidBitWidth: Invalid bit width in input: 56 #2823

pvelesko opened this issue Oct 31, 2024 · 1 comment

Comments

@pvelesko
Copy link

pvelesko commented Oct 31, 2024

Run into this error when in CMake Debug configuration. In Release configuration, fewer files fail, the ones that do fail, fail with 24 not 56.

Attached are the sources files


llvm-spirv --version                                                                                                                                                                                                                                     130 ↵
LLVM (http://llvm.org/):
  LLVM version 19.1.0
  Optimized build with assertions.

llvm-spirv --spirv-max-version=1.2 --spirv-ext=-all,+SPV_INTEL_function_pointers,+SPV_INTEL_subgroups test_device_partition-hip-spirv64-generic-lower.bc -o test_device_partition-hip-spirv64-generic.out

InvalidBitWidth: Invalid bit width in input: 56

spirvError.zip
spirvFail2.zip

@MrSidims
Copy link
Contributor

MrSidims commented Nov 6, 2024

These types are not supported in SPIR-V, it has support for 8-bit, 16-bit, 32-bit and 64-bit integers and the translator doesn't have lowering of unsupported types in SPIR-V to another supported type (and there are no plans to add this support). I suggest to investigate which optimization is responsible for the types creation and disable it or alternatively (if you really want to use these types) enable SPV_INTEL_arbitrary_precision_integers extension. It was develop exclusively for BitInt C23 feature for FPGA, so it might be not the best idea to use it, unless you really know, what you are doing :)

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