37942c982a
On gfx90a only a reduced number of CUs must be used for cooperative dispatches due to CWSR and launcher interactions with asymetric harvest. We must use one fewer CUs per SE than the lowest count of CUs on any SE. Also adds env var HSA_COOP_CU_COUNT which enables the cooperative CU count computation. Set to 1 to enable the new computation. This is an opt-in feature that will become enabled by default (opt-out) in a future release. Change-Id: Ifbb75ced3bbc15876eef44922c6a4f6fde8c4c28