[PATCH] D119207: [CUDA][SPIRV] Assign global address space to CUDA kernel arguments
Shangwu Yao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 17 11:56:48 PST 2022
shangwuyao added a comment.
In D119207#3330385 <https://reviews.llvm.org/D119207#3330385>, @dyung wrote:
> Hi, the test you added is failing on the PS4 Linux bot, can you take a look?
>
> https://lab.llvm.org/buildbot/#/builders/139/builds/17199
Looks like the compiled SPIR-V is slightly different for different build settings, for `llvm-clang-x86_64-sie-ubuntu-fast`, it is compiled to
define hidden spir_kernel void @_Z6kernelPi(i32 addrspace(1)* noundef %output.coerce) #0 {
so it is missing that extra `hidden` keyword.
And for `clang-ve-ninja`, it is compiled to
define spir_kernel void @_Z6kernelPi(i32 addrspace(1)* noundef %0) #0 {
so the kernel argument identifier is slightly different (`%0` vs `%output.coerce`).
I could fix that, I wonder why it didn't trigger the same issue (for the `hidden` keyword) with this test <https://github.com/llvm/llvm-project/blob/main/clang/test/CodeGenCUDASPIRV/kernel-cc.cu#L1-L9> tho, it is basically the same.
And why does those build test run only after merging? For future reference, can I try to run those myself before submitting?
For this change, should we do a rollback and then re-land it after applying the fix?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119207/new/
https://reviews.llvm.org/D119207
More information about the cfe-commits
mailing list