[all-commits] [llvm/llvm-project] d9cdf2: [Driver][HIP] Do not pass -dependency-file flag fo...

Aniket Lal via All-commits all-commits at lists.llvm.org
Mon Feb 10 00:28:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9cdf27834de94a7c6f5b66b28c0e6667fec5418
      https://github.com/llvm/llvm-project/commit/d9cdf27834de94a7c6f5b66b28c0e6667fec5418
  Author: Aniket Lal <lalaniket8 at gmail.com>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/dep-file-flag-with-multiple-offload-archs.hip

  Log Message:
  -----------
  [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (#125646)

When we launch hipcc with multiple offload architectures along with -MF
dep_file flag, the clang compilation invocations for host and device
offloads write to the same dep_file, and can lead to collision during
file IO operations. This can typically happen during large workloads.
This commit provides a fix to generate dep_file only in host
compilation.

---------

Co-authored-by: anikelal <anikelal 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