Skip to content

Commit d756e12

Browse files
committed
CP-24185 add gpumon_if.get_pgpu_vgpu_compatibility
This exposes a new function implemented in gpumon for checking the compatibility of vGPU and pGPU. Signed-off-by: Christian Lindig <[email protected]>
1 parent 2a0cef5 commit d756e12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gpumon/gpumon_interface.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type compatibility = Compatible | Incompatible of incompatibility_reason list
2424

2525
type pgpu_address = string
2626
type nvidia_pgpu_metadata = string
27+
type nvidia_vgpu_metadata = string
2728

2829
(** Exception raised when gpumon is unable to load the nvml nvidia library *)
2930
exception NvmlInterfaceNotAvailable
@@ -43,4 +44,11 @@ module Nvidia = struct
4344
* domid = domain ID of the VM in which the vGPU(s) is running.
4445
* pgpu_metadata = metadata of the pGPU to check compatibility for. *)
4546
external get_pgpu_vm_compatibility: debug_info -> pgpu_address -> domid -> nvidia_pgpu_metadata -> compatibility = ""
47+
48+
external get_pgpu_vgpu_compatibility
49+
: debug_info
50+
-> nvidia_pgpu_metadata
51+
-> nvidia_vgpu_metadata list
52+
-> compatibility
53+
= ""
4654
end

0 commit comments

Comments
 (0)