[PATCH] D139045: [HIP] use detected GPU in --offload-arch

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 30 16:18:07 PST 2022


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



More information about the cfe-commits mailing list