llvm-project
93b2e47f - [flang][cuda] Avoid assign element mismatch when doing data transfer from a constant (#128252)

Commit
299 days ago
[flang][cuda] Avoid assign element mismatch when doing data transfer from a constant (#128252) Currently when we do a CUDA data transfer from a constant, we embox it and delegate the assignment to the runtime. When the type of the constant is not exactly the same as the destination descriptor, the runtime will emit an assignment mismatch error. Convert the constant when necessary so the assignment is fine.
Author
Parents
Loading