This is an archive of the discontinued LLVM Phabricator instance.

[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
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.

Diff Detail

Event Timeline

yaxunl created this revision.Dec 3 2020, 7:01 PM
yaxunl requested review of this revision.Dec 3 2020, 7:01 PM
arsenm accepted this revision.Dec 3 2020, 7:26 PM

LGTM although I thought there were existing test files for this

This revision is now accepted and ready to land.Dec 3 2020, 7:26 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 5:37 AM