You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AMD] Refine handling kpack parameter for gfx950 (#7518)
Current implementation reports an assert error if `kpack != 1` is used
for MI350. One problem is many legacy code on MI300 has the value `kpack
= 2`. When running them on MI350, an assert error is reported, and users
need to change all places where `kpack = 2` is used. To avoid the
problem, if `kpack = 2` is used on MI350, we will issue a warning
message and overwrite it to 1 internally. So users are aware of the
problem, but do not have to change their source code.
assertself.kpack==1, "gfx950 only accepts kpack == 1"
77
+
if (self.arch=='gfx950') and (self.kpack!=1):
78
+
warnings.warn(
79
+
f"kpack is deprecated starting from gfx950 and will be removed in later releases. So for now kpack = {self.kpack} will be overwritten to 1 to make transitioning easier."
0 commit comments