tra added a comment.

So, in short, what you're saying is that lambda type may leak into the mangled 
name of a `__global__` function and ne need to ensure that the mangled name is 
identical for both host and device, hence the need for consistent naming of 
lambdas.

If that's the case, shouldn't it be enabled for CUDA/HIP by default? While it's 
not frequently used ATM, it is something we do want to work correctly all the 
time. The failure to do so results in weird runtime failures that would be hard 
to debug for end-users.

@rsmith -- are there any downsides having this enabled all the time?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63164/new/

https://reviews.llvm.org/D63164



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to