Commit Graph

158 Commits

Author SHA1 Message Date
Evan Lezar
2e452cae6a
Merge pull request #21 from NVIDIA/dependabot/go_modules/main/github.com/google/uuid-1.5.0
Bump github.com/google/uuid from 1.4.0 to 1.5.0
2024-01-23 14:06:52 +01:00
Evan Lezar
867d7fd9cf
Merge pull request #19 from NVIDIA/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2024-01-23 14:06:02 +01:00
dependabot[bot]
1f018b16ac
Bump github.com/google/uuid from 1.4.0 to 1.5.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 13:04:18 +00:00
dependabot[bot]
320a780c63
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 13:04:09 +00:00
Evan Lezar
bc6f5b3031
Merge pull request #18 from NVIDIA/add-dependabot
Add dependabot config
2024-01-23 14:03:44 +01:00
Evan Lezar
2d0bf20f51 Add dependabot config
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-01-23 14:03:08 +01:00
Evan Lezar
1160356081
Merge pull request #17 from NVIDIA/add-handle-function
Add nvmlDeviceHandle function to Device interface
2024-01-09 14:07:12 +01:00
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 #14 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 #7 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 #6 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