This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add AMDGPUSubtarget::getEUsPerCU()
ClosedPublic

Authored by nhaehnle on Dec 6 2022, 2:32 PM.

Details

Summary

We will use this for more accurate occupancy computations. Note that
IsaInfo takes WGP mode vs. CU mode into account on gfx10+.

Diff Detail

Event Timeline

nhaehnle created this revision.Dec 6 2022, 2:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 2:32 PM
nhaehnle requested review of this revision.Dec 6 2022, 2:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 2:32 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Dec 6 2022, 11:23 PM
This revision is now accepted and ready to land.Dec 6 2022, 11:23 PM
foad added inline comments.Dec 7 2022, 12:11 AM
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
213

Since "CU" is misleading, can you think of a better name for "unit onto which workgroups are mapped"?

nhaehnle added inline comments.Dec 7 2022, 11:27 AM
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
213

I was wondering this as well and am open to suggestions.

Work Group Processor obviously doesn't work.

Work Group Compute Unit (WGCU)? Work Group Unit (WGU)? Work Group Execution Unit (WGEU)? (And make the EU a Wave Execution Unit?)

foad added inline comments.Dec 7 2022, 12:09 PM
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
213

It's a shame there isn't an existing term. Your ideas sound OK to me, but none of them is so obviously great that we should immediately adopt it (IMO).

arsenm accepted this revision.Dec 8 2022, 5:15 AM
arsenm added inline comments.Dec 9 2022, 2:34 PM
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
213

Should include the expanded forms of these acronyms in the comments. Also /// for doxygen I think?

This revision was landed with ongoing or failed builds.Jan 23 2023, 12:43 PM
This revision was automatically updated to reflect the committed changes.