[clang] [CUDA][HIP] Support CUID in new driver (PR #122859)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 07:49:32 PST 2025


jhuber6 wrote:

> > I thought the new driver just got some entropy from the current source file's `inode` entry? I'm not opposed, since I guess it would make sense to give the user a way to override it.
> 
> Sorry I did not quite get your question. Do you suggest that we need some option to override the CUID behavior? Currently clang already has options to disable it or set it to a fixed value.

I just mean that we do 'handle' static variables currently in the new driver without `CUID`, it just makes a random string based off the file's `inode` value. The CUID would then be relevant here if the user needed to override that for some reason. (Maybe some utterly bizarre parallel compilation on a remote server or compiling the same file twice with a different macro set?)

https://github.com/llvm/llvm-project/pull/122859


More information about the cfe-commits mailing list