[clang] [Cuda] Handle -fcuda-short-ptr even with -nocudalib (PR #111682)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 07:31:35 PDT 2024
ldrumm wrote:
I'm not sure why we would ever want the current default if this is an option.
I'm trying to see it, but I can't work out a case where a 64bit pointer would make sense, since the even tens-of-thousands of money supercomputer cards have less than 256KiB of addressable shared memory.
It might be a bit of an intrusive change (albeit a relatively mechanical one), but until we see a GPU come to market that has >4GiB addressable shared memory, I think we should use the "short pointer" datalayout as default
https://github.com/llvm/llvm-project/pull/111682
More information about the cfe-commits
mailing list