@@ -28,7 +28,8 @@ import (
2828
2929const (
3030 // AttributeMediaExtensions holds the string representation for the media extension MIG profile attribute.
31- AttributeMediaExtensions = "me"
31+ AttributeMediaExtensions = "me"
32+ AttributeMediaExtensionsAll = "me.all"
3233)
3334
3435// MigProfile represents a specific MIG profile.
@@ -59,14 +60,21 @@ func (d *devicelib) NewMigProfile(giProfileID, ciProfileID, ciEngProfileID int,
5960 switch giProfileID {
6061 case nvml .GPU_INSTANCE_PROFILE_1_SLICE ,
6162 nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV1 ,
62- nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV2 :
63+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV2 ,
64+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_GFX ,
65+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_NO_ME ,
66+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_ALL_ME :
6367 giSlices = 1
6468 case nvml .GPU_INSTANCE_PROFILE_2_SLICE ,
65- nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 :
69+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 ,
70+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_GFX ,
71+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_NO_ME ,
72+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_ALL_ME :
6673 giSlices = 2
6774 case nvml .GPU_INSTANCE_PROFILE_3_SLICE :
6875 giSlices = 3
69- case nvml .GPU_INSTANCE_PROFILE_4_SLICE :
76+ case nvml .GPU_INSTANCE_PROFILE_4_SLICE ,
77+ nvml .GPU_INSTANCE_PROFILE_4_SLICE_GFX :
7078 giSlices = 4
7179 case nvml .GPU_INSTANCE_PROFILE_6_SLICE :
7280 giSlices = 6
@@ -104,6 +112,9 @@ func (d *devicelib) NewMigProfile(giProfileID, ciProfileID, ciEngProfileID int,
104112 case nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV1 ,
105113 nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 :
106114 attrs = append (attrs , AttributeMediaExtensions )
115+ case nvml .GPU_INSTANCE_PROFILE_1_SLICE_ALL_ME ,
116+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_ALL_ME :
117+ attrs = append (attrs , AttributeMediaExtensionsAll )
107118 }
108119
109120 p := & MigProfileInfo {
0 commit comments