9
9
GPU_A100 = "NVIDIA-A100-40GB"
10
10
GPU_A100_SXM4 = "NVIDIA-A100-SXM4-40GB"
11
11
GPU_V100 = "Tesla-V100-PCIE-32GB"
12
+ GPU_H100 = "NVIDIA-H100-80GB-HBM3"
12
13
GPU_UNKNOWN_TYPE = "GPU_UNKNOWN_TYPE"
13
14
14
15
# GPU Resource - MIG Geometries
23
24
SU_A100_GPU = "OpenShift GPUA100"
24
25
SU_A100_SXM4_GPU = "OpenShift GPUA100SXM4"
25
26
SU_V100_GPU = "OpenShift GPUV100"
27
+ SU_H100_GPU = "OpenShift GPUH100"
26
28
SU_UNKNOWN_GPU = "OpenShift Unknown GPU"
27
29
SU_UNKNOWN_MIG_GPU = "OpenShift Unknown MIG GPU"
28
30
SU_UNKNOWN = "Openshift Unknown"
@@ -65,6 +67,7 @@ def get_service_unit(self) -> ServiceUnit:
65
67
GPU_A100 : SU_A100_GPU ,
66
68
GPU_A100_SXM4 : SU_A100_SXM4_GPU ,
67
69
GPU_V100 : SU_V100_GPU ,
70
+ GPU_H100 : SU_H100_GPU ,
68
71
}
69
72
70
73
A100_SXM4_MIG = {
@@ -79,6 +82,7 @@ def get_service_unit(self) -> ServiceUnit:
79
82
SU_A100_GPU : {"gpu" : 1 , "cpu" : 24 , "ram" : 74 },
80
83
SU_A100_SXM4_GPU : {"gpu" : 1 , "cpu" : 31 , "ram" : 240 },
81
84
SU_V100_GPU : {"gpu" : 1 , "cpu" : 48 , "ram" : 192 },
85
+ SU_H100_GPU : {"gpu" : 1 , "cpu" : 63 , "ram" : 376 },
82
86
SU_UNKNOWN_GPU : {"gpu" : 1 , "cpu" : 8 , "ram" : 64 },
83
87
SU_UNKNOWN_MIG_GPU : {"gpu" : 1 , "cpu" : 8 , "ram" : 64 },
84
88
SU_UNKNOWN : {"gpu" : - 1 , "cpu" : 1 , "ram" : 1 },
@@ -179,6 +183,7 @@ class Rates:
179
183
gpu_a100 : Decimal
180
184
gpu_a100sxm4 : Decimal
181
185
gpu_v100 : Decimal
186
+ gpu_h100 : Decimal
182
187
183
188
184
189
@dataclass
@@ -201,6 +206,7 @@ class ProjectInvoce:
201
206
SU_A100_GPU : 0 ,
202
207
SU_A100_SXM4_GPU : 0 ,
203
208
SU_V100_GPU : 0 ,
209
+ SU_H100_GPU : 0 ,
204
210
SU_UNKNOWN_GPU : 0 ,
205
211
SU_UNKNOWN_MIG_GPU : 0 ,
206
212
SU_UNKNOWN : 0 ,
@@ -222,6 +228,8 @@ def get_rate(self, su_type) -> Decimal:
222
228
return self .rates .gpu_a100sxm4
223
229
if su_type == SU_V100_GPU :
224
230
return self .rates .gpu_v100
231
+ if su_type == SU_H100_GPU :
232
+ return self .rates .gpu_h100
225
233
return Decimal (0 )
226
234
227
235
def generate_invoice_rows (self , report_month ) -> List [str ]:
0 commit comments