[all-commits] [llvm/llvm-project] 0519e1: [HIP] Fix bug in driver about wavefront size

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Fri Dec 4 05:37:38 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0519e1ddb3885d070f054ca30a7487f915f6f795
      https://github.com/llvm/llvm-project/commit/0519e1ddb3885d070f054ca30a7487f915f6f795
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    A clang/test/Driver/hip-wavefront-size.hip

  Log Message:
  -----------
  [HIP] Fix bug in driver about wavefront size

The static variable causes it only initialized once and take
the same value for different GPU archs, whereas they
may be different for different GPU archs, e.g. when
there are both gfx900 and gfx1010.

Removing static fixes that.

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




More information about the All-commits mailing list