[all-commits] [llvm/llvm-project] ba5782: [CUDA][OpenMP] Fix the new driver crashing on mult...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 24 06:48:14 PDT 2022


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

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/cuda-bindings.cu
    M clang/test/Driver/hip-binding.hip

  Log Message:
  -----------
  [CUDA][OpenMP] Fix the new driver crashing on multiple device-only outputs

The new driver supports device-only compilation for the offloading
device. The way this is handlded is a little different from the old
offloading driver. The old driver would put all the outputs in the final
action list akin to a linker job. The new driver however generated these
in the middle of the host's job so we instead put them all in a single
offloading action. However, we only handled these kinds of offloading
actions correctly when there was only a single input. When we had
multiple inputs we would instead attempt to get the host job, which
didn't exist, and crash.

This patch simply adds some extra logic to generate the jobs for all
dependencies if there is not host action.

Reviewed By: yaxunl

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




More information about the All-commits mailing list