[all-commits] [llvm/llvm-project] 9a977d: Fix __hip_fabin visibility

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Fri Jul 23 07:15:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a977daaf6b19c6ff7a53afbe8ece2cb7011dd9e
      https://github.com/llvm/llvm-project/commit/9a977daaf6b19c6ff7a53afbe8ece2cb7011dd9e
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/test/Driver/hip-toolchain-rdc.hip

  Log Message:
  -----------
  Fix __hip_fabin visibility

In -fgpu-rdc case, fat binary is embedded as global variable __hip_fatbin.
It needs to have protected visibility to avoid conflict between shared
libraries.

Reviewed by: Siu Chi Chan

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

Fixes: SWDEV-292290




More information about the All-commits mailing list