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

[SPIR-V] error: backend data layout does not match expected target description #88936

Closed
Keenuts opened this issue Apr 16, 2024 · 0 comments · Fixed by #88939
Closed

[SPIR-V] error: backend data layout does not match expected target description #88936

Keenuts opened this issue Apr 16, 2024 · 0 comments · Fixed by #88939
Labels
backend:SPIR-V SPIR-V SPIR-V language support

Comments

@Keenuts
Copy link
Contributor

Keenuts commented Apr 16, 2024

A recent PR (#88455) fixed the address space for the SPIR-V targets.
As a result, we get an error when using clang (at least tried with the DXC driver).
Not sure why yet.

[numthreads(1, 1, 1)]
void main() {}
[user@lvm-project]$ ./build/bin/clang --driver-mode=dxc -T cs_6_0 -spirv -fspv-target-env=vulkan1.3 repro.hlsl
	OpCapability Shader
[...]
	OpFunctionEnd
                                        ; -- End function
error: backend data layout 'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1' does not match expected target description 'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024'
@Keenuts Keenuts added backend:SPIR-V SPIR-V SPIR-V language support labels Apr 16, 2024
@Keenuts Keenuts linked a pull request Apr 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:SPIR-V SPIR-V SPIR-V language support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant