[all-commits] [llvm/llvm-project] 3b5234: [CUDA] Fix output name being replaced in device-on...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Aug 5 16:08:59 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b52341116b794e53dec2fd07e568884e5a0b8bb
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Cuda.cpp
    M clang/test/Driver/cuda-bindings.cu

  Log Message:
  [CUDA] Fix output name being replaced in device-only mode

When performing device only compilation, there was an issue where
`cubin` outputs were being renamed to `cubin` despite the user's name.
This is required in a normal compilation flow as the Nvidia tools only
understand specific filenames instead of checking magic bytes for some
unknown reason. We do not want to perform this transformation when the
user is performing device only compilation.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D131278

More information about the All-commits mailing list