Carlos Eduardo Arango Gutierrez
c48c1fc89f
Merge branch 'rename-ci' into 'main'
...
Reename blossom ci file
See merge request nvidia/cloud-native/go-nvlib!42
2023-05-30 11:41:52 +00:00
rorajani
4459a7ff5a
Reename blossom ci file
...
Signed-off-by: rorajani <rorajani@nvidia.com>
2023-05-30 17:05:25 +05:30
Evan Lezar
cc120ebc48
Merge branch 'rorajani-main-patch-92486' into 'main'
...
Add pre sanity
See merge request nvidia/cloud-native/go-nvlib!39
2023-05-25 14:36:00 +00:00
Evan Lezar
b2a3c00720
Merge branch 'add-coverage-target' into 'main'
...
Add coverage make target
See merge request nvidia/cloud-native/go-nvlib!41
2023-05-24 15:18:45 +00:00
Evan Lezar
50d9615b6c
Add coverage make target
...
These changes add a coverage target to align with other projects.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-05-24 17:02:35 +02:00
rorajani
f0ce798126
Add pre sanity
...
Signed-off-by: rorajani <rorajani@nvidia.com>
2023-05-22 20:38:41 +05:30
Evan Lezar
649703f6b3
Merge branch 'fix-visit-on-older-drivers' into 'main'
...
Check if device is MIG Capable when visiting MIG devices
See merge request nvidia/cloud-native/go-nvlib!40
2023-05-22 13:25:28 +00:00
Evan Lezar
62eb401f91
Check if device is MIG Capable when visiting MIG devices
...
This change updates Device.VisitMigDevices to align with
Device.VisitMigProfiles in than the function is skipped for
non-MIG-capable devices. This allows the function to always
be a no-op on older drivers where MIG is not supported.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-05-22 13:24:11 +02:00
Kevin Klues
18ad7cd513
Merge branch 'add-brand' into 'main'
...
Pass device.GetBrand() through from NVML and wrap it to print a string
See merge request nvidia/cloud-native/go-nvlib!37
2023-03-27 17:12:25 +00:00
Kevin Klues
97a3f2d5c5
Merge branch 'fix-mir-profile-equals' into 'main'
...
Fix bug where MigProfile.Equals() would not work with wrapper type
See merge request nvidia/cloud-native/go-nvlib!36
2023-03-27 17:12:01 +00:00
Kevin Klues
8d1b98baa6
Fix bug where MigProfile.Equals() would not work with wrapper type
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-27 16:43:56 +00:00
Kevin Klues
2b4f40a90b
Extract MockNVDeviceLib into helper function in nvdev tests
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-27 16:42:42 +00:00
Kevin Klues
bdc2553e78
Merge branch 'add-assert-mig-profile-format' into 'main'
...
Add function for AssertValidMigProfileFormat
See merge request nvidia/cloud-native/go-nvlib!38
2023-03-27 14:14:13 +00:00
Kevin Klues
82adde1bf4
Remove redundant tests and fix misleading tests
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-27 10:08:21 +00:00
Kevin Klues
18957773f2
Add function for AssertValidMigProfileFormat
...
This does not verify that the profile is a valid profile for the current
platform, but rather that it simply adheres to the proper formatting of a MIG
profile string.
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-27 10:04:32 +00:00
Kevin Klues
087de4f458
Pass device.GetBrand() through from NVMl and wrap it to print a string
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-26 21:15:51 +00:00
Kevin Klues
649f196fb7
Merge branch 'fix-bug-in-visit-mig-profiles' into 'main'
...
Fix bug in heuristic for which MIG profiles to skip
See merge request nvidia/cloud-native/go-nvlib!35
2023-03-25 22:11:36 +00:00
Kevin Klues
8c50f9f18f
Fix bug in heuristic for which MIG profiles to skip
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-25 22:01:20 +00:00
Kevin Klues
500a464b22
Cache mig profiles in devicelib, not just each device
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-25 18:48:18 +00:00
Kevin Klues
13b333d4a6
Merge branch 'add-arch' into 'main'
...
Add ability to query device architeture and cuda compute capability
See merge request nvidia/cloud-native/go-nvlib!34
2023-03-24 15:08:42 +00:00
Kevin Klues
631bde023f
Add ability to query device architeture and cuda compute capability
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-24 14:24:19 +00:00
Kevin Klues
2442aa703d
Merge branch 'update-mig-profile-parsing' into 'main'
...
Update mig-profile parsing / name generation after go-nvml v12.0 bump
See merge request nvidia/cloud-native/go-nvlib!33
2023-03-24 11:04:23 +00:00
Kevin Klues
642041d1e0
Update mig-profile parsing / name generation after go-nvml v12.0 bump
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-23 19:29:57 +00:00
Kevin Klues
1f178b880d
Update glang version in go module to 1.20
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-03-23 10:27:47 +00:00
Carlos Eduardo Arango Gutierrez
62b1c915e1
Merge branch 'blossom-ci' into 'main'
...
blossom-ci: enable blossom github action
See merge request nvidia/cloud-native/go-nvlib!32
2023-03-16 15:32:06 +00:00
Carlos Eduardo Arango Gutierrez
5d6447e5ce
blossom-ci: enable blossom github action
...
Enable Blossom CI integration by adding the blossom-ci.yml file.
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2023-03-16 16:26:08 +01:00
Christopher Desiniotis
4ea7dac0fa
Merge branch 'CNT-4021/bump-go-nvml' into 'main'
...
Update vendored go-nvml to 12.0
See merge request nvidia/cloud-native/go-nvlib!31
2023-03-14 18:17:32 +00:00
Christopher Desiniotis
f5ef22d7bb
Update vendored go-nvml to 12.0
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-03-14 10:36:13 -07:00
Evan Lezar
95328d8c44
Merge branch 'add-wsl2-detection' into 'main'
...
Add HasDXCore to info package
See merge request nvidia/cloud-native/go-nvlib!30
2023-02-09 14:37:38 +00:00
Evan Lezar
bcbaf5a0de
Add HasDXCore to info package
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-02-08 16:04:35 +01:00
Kevin Klues
6fe07bb333
Merge branch 'add-more-apis' into 'main'
...
Add new APIs in nvml and nvlib.device
See merge request nvidia/cloud-native/go-nvlib!29
2023-01-19 11:47:11 +00:00
Kevin Klues
264c5dab79
Add NewDeviceByUUID() and NewMigDeviceByUUID() calls to nvlib.device
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-12-08 14:53:50 +00:00
Kevin Klues
5d4be6ac55
Regenerate mocks for NVML
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-12-08 14:53:45 +00:00
Kevin Klues
6a4886e49e
Add Placement related calls for GPUInstances in nvml wrapper
...
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-12-08 14:53:39 +00:00
Kevin Klues
49dcad67c4
Merge branch 'skip-DGX-display' into 'main'
...
Skip DGX Display devices in addition to NVIDIA DGX Display devices
See merge request nvidia/cloud-native/go-nvlib!28
2022-12-07 11:20:48 +00:00
Evan Lezar
7e5501f6a3
Skip DGX Display devices in addition to NVIDIA DGX Display devices
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-12-07 11:40:09 +01:00
Evan Lezar
a27e593595
Merge branch 'skip-display-devices-on-name' into 'main'
...
Skip display devices based on model name
See merge request nvidia/cloud-native/go-nvlib!26
2022-11-21 20:39:40 +00:00
Evan Lezar
417a5254a4
Pin moq version to v0.2.7
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-21 15:50:01 +01:00
Evan Lezar
d69a94ffdd
Add .shell target for interactive make
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-21 15:47:46 +01:00
Evan Lezar
1fc1eee392
Remove WithSelecteDeviceClasses option
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-21 15:47:44 +01:00
Evan Lezar
655eb9795c
Skip display devices based on device names
...
This allows devices to be skipped based on device names and
skips "NVIDIA DGX Display" devices by default.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-21 15:46:15 +01:00
Evan Lezar
0e10f084d1
Merge branch 'fix-pci-id-case' into 'main'
...
Ensure pci bus ID is lower case
See merge request nvidia/cloud-native/go-nvlib!25
2022-11-16 11:13:58 +00:00
Evan Lezar
fa5d0408ce
Ensure pci bus ID is lower case
...
The PCI Bus ID returned by NVML is upper case and results in the following error:
error getting PCI device class for device:
failed to construct PCI device:
unable to read PCI device vendor id for 0000:0A:00.0:
open /sys/bus/pci/devices/0000:0A:00.0/vendor:
no such file or directory
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-16 12:12:07 +01:00
Kevin Klues
9110850748
Merge branch 'skip-display-devices' into 'main'
...
Skip devices based on PCI device class
See merge request nvidia/cloud-native/go-nvlib!24
2022-11-16 09:48:48 +00:00
Evan Lezar
4a0fdc2e8a
Skip pkg/nvml folder when linting
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-16 10:30:49 +01:00
Evan Lezar
e37e145458
Add filtering of devices based on PCI device class
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-16 10:30:49 +01:00
Evan Lezar
f156c34310
Add private constructor for creating a device
...
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-15 17:42:22 +01:00
Evan Lezar
e96d9c58f1
Add GetGPUByPciBusID to nvpci.Interface
...
This change adds a GetGPUByPciBusID method to the nvpci Interface.
The exising NewDevice function is moved to nvmdev where it is used.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-15 17:42:22 +01:00
Zvonko Kaiser
0e8a479bd5
Merge branch 'pciids' into 'main'
...
Added PCI IDS support and DPU detection
See merge request nvidia/cloud-native/go-nvlib!23
2022-11-03 09:57:58 +00:00
Zvonko Kaiser
f3102f8dcb
Added PCI IDS support and DPU detection
2022-11-02 03:58:13 -07:00