[PATCH] D65423: [AMDGPU] Fix high occupancy calculation and print it

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 16:30:52 PDT 2019


rampitec marked an inline comment as done.
rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUSubtarget.h:1322
+
+  unsigned getMaxWavesPerEU() const override { return 10; }
 };
----------------
arsenm wrote:
> Should just set a field in the constructor rather than introducing a virtual 
That is too early, constructor does not know it yet.
Also look at the other functions of the same family, they are all virtual: getMaxWorkGroupsPerCU, getMinFlatWorkGroupSize, getMaxFlatWorkGroupSize, getMinWavesPerEU, getMaxWavesPerEU(unsigned FlatWorkGroupSize).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65423/new/

https://reviews.llvm.org/D65423





More information about the llvm-commits mailing list