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.
Paths
| Differential D92628
[HIP] Fix bug in driver about wavefront size ClosedPublic Authored by yaxunl on Dec 3 2020, 7:01 PM.
Details
Summary The static variable causes it only initialized once and take Removing static fixes that.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Dec 3 2020, 7:26 PM Closed by commit rG0519e1ddb388: [HIP] Fix bug in driver about wavefront size (authored by yaxunl). · Explain WhyDec 4 2020, 5:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 309439 clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/test/Driver/hip-wavefront-size.hip
|