[all-commits] [llvm/llvm-project] c2312c: clang/AMDGPU: Remove driver restriction on --gpu-m...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jul 10 13:49:49 PDT 2026


  Branch: refs/heads/users/arsenm/clang/amdgpu-remove-artificial-restriction-gpu-max-threads-per-block
  Home:   https://github.com/llvm/llvm-project
  Commit: c2312cba20800619739289eb9bcf7ed3db5391fe
      https://github.com/llvm/llvm-project/commit/c2312cba20800619739289eb9bcf7ed3db5391fe
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    A clang/test/Driver/amdgpu-openmp-gpu-max-threads-per-block.c
    A clang/test/Frontend/openmp-warn-gpu-max-threads-per-block.c

  Log Message:
  -----------
  clang/AMDGPU: Remove driver restriction on --gpu-max-threads-per-block

Previously this flag was only handled for HIP, and would produce an unused
argument warning. There is a custom warning produced by cc1 that the
argument isn't supported, but practically speaking that was unreachable
due to not forwarding the argument. Also add a test for the untested warning.
Also use a simpler method for forwarding the flag to cc1.



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