forked from OSchip/llvm-project
[CUDA] Use all 64 bits of GUID in __nv_module_id
getGUID() returns an uint64_t and "%x" only prints 32 bits of it. Use PRIx64 format string to print all 64 bits. Differential Revision: https://reviews.llvm.org/D52938 llvm-svn: 343875
This commit is contained in:
parent
fb43114ba2
commit
93552b39c9
|
@ -520,7 +520,7 @@ llvm::Function *CGNVCUDARuntime::makeModuleCtorFunction() {
|
|||
// Generate a unique module ID.
|
||||
SmallString<64> ModuleID;
|
||||
llvm::raw_svector_ostream OS(ModuleID);
|
||||
OS << ModuleIDPrefix << llvm::format("%x", FatbinWrapper->getGUID());
|
||||
OS << ModuleIDPrefix << llvm::format("%" PRIx64, FatbinWrapper->getGUID());
|
||||
llvm::Constant *ModuleIDConstant =
|
||||
makeConstantString(ModuleID.str(), "", ModuleIDSectionName, 32);
|
||||
|
||||
|
|
Loading…
Reference in New Issue