tra added a comment.

> This patch detects system GPU and use them in --offload-arch if not 
> specified. If system GPU cannot be detected clang will fall back to gfx803.

I don't think auto-probing is something we want to do by default.

IMO, we should be following `-march=native` behavior here and check the 
available hardware variant only when the user requested it. Otherwise, the same 
compiler command line will produce different outputs, without the user 
requesting or even being aware of that.


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

https://reviews.llvm.org/D139045

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

Reply via email to