Christopher Desiniotis
9fe8961f90
Use docker:dind image in CI
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-09-29 11:12:47 -07:00
Christopher Desiniotis
d0e627da7a
Bump go to 1.21.1
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-09-29 09:40:56 -07:00
Christopher Desiniotis
28486178b6
Bump stretchr/testify package
...
This pulls in a newer version of gopkg.in/yaml.v3 that no longer
contains a high severity CVE https://nvd.nist.gov/vuln/detail/CVE-2022-28948
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-09-29 09:19:06 -07:00
Evan Lezar
09424fdc88
Merge branch 'nvpci-unknown-devices' into 'main'
...
Generate warnings instead of errors for unknown device / class ids in the PCI database.
See merge request nvidia/cloud-native/go-nvlib!50
2023-08-18 09:29:07 +00:00
Christopher Desiniotis
00db36d544
Update go dependencies
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-08-17 09:57:31 -07:00
Christopher Desiniotis
aa1c216841
Add a local logging interface for nvpci
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-08-17 09:57:29 -07:00
Christopher Desiniotis
114da86794
Generate warnings instead of errors for unknown device / class ids in the PCI database.
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-07-31 11:33:00 -07:00
Carlos Eduardo Arango Gutierrez
2c8c6ab21c
Merge branch 'main' into 'main'
...
Add Krishnan to authorized user to trigger ci
See merge request nvidia/cloud-native/go-nvlib!49
2023-07-24 09:15:55 +00:00
rorajani
90e644e65e
Add Krishnan to authorized user to trigger ci
2023-07-24 09:12:08 +00:00
Evan Lezar
cfe9c8adc4
Merge branch 'main' into 'main'
...
Add user for blossom CI trigger
See merge request nvidia/cloud-native/go-nvlib!48
2023-07-19 12:25:38 +00:00
rorajani
75011c5813
Add user for blossom CI trigger
2023-07-19 12:17:52 +00:00
Evan Lezar
e6fcecfa67
Merge branch 'main' into 'main'
...
Update github action workflows folder
See merge request nvidia/cloud-native/go-nvlib!47
2023-07-11 11:44:09 +00:00
rorajani
78fb762f23
Update github action workflows folder
2023-07-11 11:07:00 +00:00
Christopher Desiniotis
7663cf900f
Merge branch 'pciids-error-handling' into 'main'
...
Update pciids interface to return errors for invalid vendor / device ids
See merge request nvidia/cloud-native/go-nvlib!44
2023-06-13 18:23:22 +00:00
Christopher Desiniotis
1b3ef9bd64
Update pciids interface to return errors for invalid vendor / device ids
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-06-13 11:18:21 -07:00
Christopher Desiniotis
460d246d23
Merge branch 'pciids-build-options' into 'main'
...
Allow clients of the pciids API to set the pci.ids filepath
See merge request nvidia/cloud-native/go-nvlib!43
2023-06-13 18:16:42 +00:00
Christopher Desiniotis
066d8f30bc
Allow options to be passed when creating an instance of the nvpci interface
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-06-09 17:27:31 -07:00
Christopher Desiniotis
76018d282e
Allow clients of the pciids API to set the pci.ids filepath
...
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-06-09 16:06:51 -07:00
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