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

Aniket Lal via All-commits all-commits at lists.llvm.org
Mon Feb 3 22:58:57 PST 2025


  Branch: refs/heads/users/lalaniket8/clang-hip-driver-dependency-file-flag
  Home:   https://github.com/llvm/llvm-project
  Commit: eec1f03d7e9fc24183b488952f9f510eb93b8a11
      https://github.com/llvm/llvm-project/commit/eec1f03d7e9fc24183b488952f9f510eb93b8a11
  Author: anikelal <anikelal at amd.com>
  Date:   2025-02-04 (Tue, 04 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.



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