jhuber6 wrote:

> Can `-fsanitize=undefined -fsanitize-trap=all` now be used for GPUs? This 
> doesn't require any library installed.
> 
> Is the PR enabling UBSan for HIP?

Yes, this enables UBSan on HIP / OpenMP / Whatever. All it does is respect the 
flags so they make it to the device. The `-fsanitize=trap` already functions 
without a library and https://github.com/llvm/llvm-project/pull/188289 adds the 
minimal runtime which actually prints the error.

https://github.com/llvm/llvm-project/pull/188290
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to