Commit Graph

176 Commits

Author SHA1 Message Date
dependabot[bot]
24cf75b2bd
Bump golangci/golangci-lint-action from 4 to 5
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 08:09:50 +00:00
Kevin Klues
094481f79a
Merge pull request #32 from klueska/update-go-nvml
Update to incorporate go-nvml updates to expose interface types
2024-04-13 08:15:44 +01:00
Kevin Klues
153699bb93 Update to incorporate go-nvml updates to expose interface types
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-04-12 21:19:30 +00:00
Carlos Eduardo Arango Gutierrez
3c1b6c29ec
Merge pull request #29 from ArangoGutierrez/ghactions
Update GItHub actions
2024-04-04 16:17:44 +02:00
Carlos Eduardo Arango Gutierrez
48789b76df
Address golangci-lint warnings
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-04 15:24:10 +02:00
Carlos Eduardo Arango Gutierrez
ab773cb50a
Add GitHub actions
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-04 13:08:50 +02:00
Evan Lezar
35b90cfcaa
Merge pull request #27 from NVIDIA/bump-go-nvml
Update github.com/NVIDIA/go-nvml to v0.12.0-3
2024-03-15 15:06:25 +02:00
Evan Lezar
591d38df50 Update github.com/NVIDIA/go-nvml to v0.12.0-3
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-03-15 15:04:07 +02:00
Evan Lezar
3d0b556ad0
Merge pull request #26 from NVIDIA/add-compute-mode-constants
Add ComputeMode constants
2024-03-12 22:06:29 +02:00
Evan Lezar
fb0dc9d525 Add ComputeMode constants
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-03-12 17:23:12 +02:00
Evan Lezar
6ac4869fbb
Merge pull request #25 from NVIDIA/add-set-compute-mode
Add SetComputeMode method to Device
2024-03-11 19:57:10 +02:00
Evan Lezar
22de91ff86
Merge pull request #24 from NVIDIA/dependabot/go_modules/main/github.com/stretchr/testify-1.9.0
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
2024-03-11 16:31:07 +02:00
Evan Lezar
2feaa48250 Add SetComputeMode method to Device
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-03-11 16:25:04 +02:00
dependabot[bot]
ae0c0578f6
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-03 08:18:58 +00:00
Evan Lezar
35fb5131fc
Merge pull request #22 from NVIDIA/dependabot/go_modules/main/github.com/google/uuid-1.6.0
Bump github.com/google/uuid from 1.5.0 to 1.6.0
2024-02-06 10:18:28 +01:00
dependabot[bot]
8f4bb0b2fe
Bump github.com/google/uuid from 1.5.0 to 1.6.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.5.0 to 1.6.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.5.0...v1.6.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-28 08:21:46 +00:00
Evan Lezar
27a06910cf
Merge pull request #20 from NVIDIA/dependabot/go_modules/main/github.com/NVIDIA/go-nvml-0.12.0-2
Bump github.com/NVIDIA/go-nvml from 0.12.0-1.0.20231020145430-e06766c5e74f to 0.12.0-2
2024-01-27 10:15:03 +01:00
dependabot[bot]
d3874bda61
Bump github.com/NVIDIA/go-nvml
Bumps [github.com/NVIDIA/go-nvml](https://github.com/NVIDIA/go-nvml) from 0.12.0-1.0.20231020145430-e06766c5e74f to 0.12.0-2.
- [Commits](https://github.com/NVIDIA/go-nvml/commits/v0.12.0-2)

---
updated-dependencies:
- dependency-name: github.com/NVIDIA/go-nvml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 13:07:41 +00:00
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