[all-commits] [llvm/llvm-project] fe0374: [Clang] Do not emit multi-gpu warning if they are ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Mar 23 14:09:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe03749f08f86e8cf94132bd9155a68637657a8c
      https://github.com/llvm/llvm-project/commit/fe03749f08f86e8cf94132bd9155a68637657a8c
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-03-23 (Mon, 23 Mar 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/Cuda.cpp

  Log Message:
  -----------
  [Clang] Do not emit multi-gpu warning if they are all the same (#185490)

Summary:
This warning exists because if you do `-mcpu=native` in some contexts it
may not be obvious which GPU you get. But if they are all the same then
it really don't make a difference since we just pass the first one to
`-mcpu` anyway. Relax this so it doesn't annoyingly warn on machines
with more than one of the same GPU.

---------

Co-authored-by: Jacob Lambert <jacob.lambert at amd.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list