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

Aniket Lal via All-commits all-commits at lists.llvm.org
Wed Feb 5 01:22:03 PST 2025


  Branch: refs/heads/users/lalaniket8/clang-hip-driver-dependency-file-flag
  Home:   https://github.com/llvm/llvm-project
  Commit: ae1f0e723ee8de2bc4f0032c884512ec79fae800
      https://github.com/llvm/llvm-project/commit/ae1f0e723ee8de2bc4f0032c884512ec79fae800
  Author: anikelal <anikelal at amd.com>
  Date:   2025-02-05 (Wed, 05 Feb 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp

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

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.


  Commit: 62d313ab07199a90b0523e4be1bd4b0b555faf03
      https://github.com/llvm/llvm-project/commit/62d313ab07199a90b0523e4be1bd4b0b555faf03
  Author: anikelal <anikelal at amd.com>
  Date:   2025-02-05 (Wed, 05 Feb 2025)

  Changed paths:
    A clang/test/Driver/dep-file-flag-with-multiple-offload-archs.hip

  Log Message:
  -----------
  Adding littest


Compare: https://github.com/llvm/llvm-project/compare/eec1f03d7e9f...62d313ab0719

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