1
0
mirror of https://github.com/clearml/go-nvlib synced 2025-02-23 20:43:02 +00:00
Commit Graph

151 Commits

Author SHA1 Message Date
Evan Lezar
06cbc571ef Add nvmlDeviceHandle function to Device interface
This change allows the underlying device handle to be returned
without relying on type-casting.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-01-09 14:05:01 +01:00
Christopher Desiniotis
f3264c8a6a
Merge pull request from NVIDIA/CNT-4778/identifier-parsing
Add an Identifier type to nvlib/device for parsing GPU identifiers
2023-12-12 11:45:27 -08:00
Christopher Desiniotis
177e4eef6f Add an Identifier type to nvlib/device which implements common parsing of GPU indices and UUIDs
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-12-06 16:42:51 -08:00
Evan Lezar
9fd385bace
Merge pull request from NVIDIA/add-nvlink-functions
Add functions related to NVLink info
2023-11-16 16:09:31 +01:00
Evan Lezar
b21432a353
Merge pull request from NVIDIA/rename-module
Rename go module to github.com/NVIDIA/go-nvlib
2023-11-15 18:00:30 +01:00
Evan Lezar
2d9404b131 Rename go module to github.com/NVIDIA/go-nvlib
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-11-15 17:58:43 +01:00
Evan Lezar
d954f99641 Merge branch 'fix-fmt' into 'main'
Run go fmt on pciids/pciids.go

See merge request nvidia/cloud-native/go-nvlib!58
2023-11-14 12:38:04 +00:00
Evan Lezar
e2e221a166 Run go fmt on pciids/pciids.go
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-11-14 13:37:40 +01:00
Evan Lezar
80d61efe5d Add functions related to NVLink info
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-11-14 12:55:16 +01:00
Evan Lezar
f3bc000e2e Merge branch 'allow-library-selection' into 'main'
Allow path to libnvidia-ml to be specified

See merge request nvidia/cloud-native/go-nvlib!56
2023-10-24 13:27:53 +00:00
Evan Lezar
e5083eec19 Merge branch 'use-nvml-symbol-lookup' into 'main'
Use GetLibrary().Lookup() in nvml package

See merge request nvidia/cloud-native/go-nvlib!54
2023-10-24 13:01:03 +00:00
Evan Lezar
30ca72faaf TOFIX: Allow libname to be specified
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-10-23 14:09:03 +02:00
Evan Lezar
462774a8d2 Update go-nvml dependency
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-10-20 16:57:28 +02:00
Evan Lezar
278851d719 Use GetLibrary().Lookup() in nvml package
This change uses the GetLibrary().Lookup() function in the nvml package
to check whether a particular function is available. This avoids
the need to explicitly open a library, for example.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-10-20 16:56:56 +02:00
Evan Lezar
486ed3f0c8 Merge branch 'remove-blossom-integration' into 'main'
Remove blossom-ci workflow

See merge request nvidia/cloud-native/go-nvlib!55
2023-10-13 15:04:49 +00:00
Evan Lezar
6b8a655b48 Remove blossom-ci workflow
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-10-13 16:59:00 +02:00
Tariq Ibrahim
8ff02ffd5b Merge branch 'update-pciid-db' into 'main'
update default pci_ids db

See merge request nvidia/cloud-native/go-nvlib!52
2023-09-29 18:25:46 +00:00
Christopher Desiniotis
97fd47ac17 Merge branch 'resolve-CVE-2022-28948' into 'main'
Bump stretchr/testify package

See merge request nvidia/cloud-native/go-nvlib!53
2023-09-29 18:22:48 +00:00
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
Tariq Ibrahim
e7e9adaebd add make target to update default pciids file 2023-09-22 12:37:41 -07:00
Tariq Ibrahim
4bbcda1940 update default pci_ids db 2023-08-28 16:01:27 -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