[all-commits] [llvm/llvm-project] e372c1: [HIP] Fix -fgpu-allow-device-init option

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Sun Oct 4 19:17:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e372c1d7624e2402a5f91a640780fb32649922b6
      https://github.com/llvm/llvm-project/commit/e372c1d7624e2402a5f91a640780fb32649922b6
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-10-04 (Sun, 04 Oct 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/test/Driver/hip-options.hip

  Log Message:
  -----------
  [HIP] Fix -fgpu-allow-device-init option

The option needs to be passed to both host and device compilation.

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




More information about the All-commits mailing list