@@ -28,7 +28,9 @@ 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"
33+ AttributeGraphics = "gfx"
3234)
3335
3436// MigProfile represents a specific MIG profile.
@@ -59,14 +61,21 @@ func (d *devicelib) NewMigProfile(giProfileID, ciProfileID, ciEngProfileID int,
5961 switch giProfileID {
6062 case nvml .GPU_INSTANCE_PROFILE_1_SLICE ,
6163 nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV1 ,
62- nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV2 :
64+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV2 ,
65+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_GFX ,
66+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_NO_ME ,
67+ nvml .GPU_INSTANCE_PROFILE_1_SLICE_ALL_ME :
6368 giSlices = 1
6469 case nvml .GPU_INSTANCE_PROFILE_2_SLICE ,
65- nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 :
70+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 ,
71+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_GFX ,
72+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_NO_ME ,
73+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_ALL_ME :
6674 giSlices = 2
6775 case nvml .GPU_INSTANCE_PROFILE_3_SLICE :
6876 giSlices = 3
69- case nvml .GPU_INSTANCE_PROFILE_4_SLICE :
77+ case nvml .GPU_INSTANCE_PROFILE_4_SLICE ,
78+ nvml .GPU_INSTANCE_PROFILE_4_SLICE_GFX :
7079 giSlices = 4
7180 case nvml .GPU_INSTANCE_PROFILE_6_SLICE :
7281 giSlices = 6
@@ -104,6 +113,13 @@ func (d *devicelib) NewMigProfile(giProfileID, ciProfileID, ciEngProfileID int,
104113 case nvml .GPU_INSTANCE_PROFILE_1_SLICE_REV1 ,
105114 nvml .GPU_INSTANCE_PROFILE_2_SLICE_REV1 :
106115 attrs = append (attrs , AttributeMediaExtensions )
116+ case nvml .GPU_INSTANCE_PROFILE_1_SLICE_ALL_ME ,
117+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_ALL_ME :
118+ attrs = append (attrs , AttributeMediaExtensionsAll )
119+ case nvml .GPU_INSTANCE_PROFILE_1_SLICE_GFX ,
120+ nvml .GPU_INSTANCE_PROFILE_2_SLICE_GFX ,
121+ nvml .GPU_INSTANCE_PROFILE_4_SLICE_GFX :
122+ attrs = append (attrs , AttributeGraphics )
107123 }
108124
109125 p := & MigProfileInfo {
0 commit comments