[all-commits] [llvm/llvm-project] ed022d: [clang][AMDGPU] Enable module splitting by default...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Mon Mar 24 06:43:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed022d93b2fbfe52b7bdee786aa5cc49fa2323c4
      https://github.com/llvm/llvm-project/commit/ed022d93b2fbfe52b7bdee786aa5cc49fa2323c4
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2025-03-24 (Mon, 24 Mar 2025)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.h
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    M clang/test/Driver/amdgpu-toolchain.c
    A clang/test/Driver/hip-toolchain-rdc-flto-partitions.hip
    M clang/test/Driver/hip-toolchain-rdc-static-lib.hip
    M clang/test/Driver/hip-toolchain-rdc.hip

  Log Message:
  -----------
  [clang][AMDGPU] Enable module splitting by default (#128509)

The default number of partitions is the number of cores on the machine
with a cap at 16, as going above 16 is unlikely to be useful in the
common case.

Adds a flto-partitions option to override the number of partitions
easily (without having to use -Xoffload-linker). Setting it to 1
effectively disables module splitting.

Fixes SWDEV-506214



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