Skip to content

Commit

Permalink
Merge pull request #50 from Cldfire/cuda-12.2
Browse files Browse the repository at this point in the history
Cuda 12.2
  • Loading branch information
Cldfire authored Oct 14, 2023
2 parents fca6a0f + 4ffd107 commit 1d71e81
Show file tree
Hide file tree
Showing 31 changed files with 3,011 additions and 854 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- main
pull_request:

name: CI
Expand All @@ -15,7 +15,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
rust:
- stable
- 1.51.0
- 1.60.0
# Avoid trying to build on macos-latest with Rust 1.51
#
# Rust < 1.54 doesn't work with xcode 14
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This file describes the changes / additions / fixes between wrapper releases, tr

## [Unreleased]

Updates for NVML 12.2.

### Added

* `Device`
Expand All @@ -18,11 +20,21 @@ This file describes the changes / additions / fixes between wrapper releases, tr

### Internal

* Bumped MSRV to 1.60.0 for usage of namespaced features
* Removed `rust-hook` from development workflow
* Started building crate in CI on `macos-latest`
* Added a script to find unwrapped function names
* Vendored header files are now excluded from repo stats

### Rust Version Support

The MSRV of this release is 1.60.0. This is for usage of namespaced features.

### Dependencies

* `bitflags`: `1.3` -> `2.4.0`
* `libloading`: `0.7.0` -> `0.8.1`

## [0.9.0] (released 2023-01-20)

### Release Summary
Expand Down
141 changes: 111 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ functions.

## MSRV

The Minimum Supported Rust Version is currently 1.51.0. I will not go out of my
The Minimum Supported Rust Version is currently 1.60.0. I will not go out of my
way to avoid bumping this.

## Cargo Features
Expand Down
6 changes: 6 additions & 0 deletions nvml-wrapper-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This file describes the changes / additions / fixes between bindings releases.

## Unreleased

Bindings have been regenerated using the NVML 12.2 header and bindgen 0.68.1.

### Rust Version Support

The MSRV of this release is 1.60.0 (to match the wrapper crate).

## 0.7.0 (released 2023-01-20)

Bindings have been regenerated using the NVML 11.8 header and bindgen 0.63.0.
Expand Down
4 changes: 2 additions & 2 deletions nvml-wrapper-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ documentation = "https://docs.rs/nvml-wrapper-sys"
repository = "https://github.com/Cldfire/nvml-wrapper"
license = "MIT OR Apache-2.0"
edition = "2018"
rust-version = "1.51.0"
rust-version = "1.60.0"

keywords = ["nvidia", "gpu", "managment", "monitoring", "hardware"]
categories = ["external-ffi-bindings", "hardware-support"]

exclude = ["nvml.h"]

[dependencies]
libloading = "0.7.0"
libloading = "0.8.1"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion nvml-wrapper-sys/gen_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

bindgen --ctypes-prefix raw --no-doc-comments --no-layout-tests --raw-line '#![allow(non_upper_case_globals)]' \
--raw-line '#![allow(non_camel_case_types)]' --raw-line '#![allow(non_snake_case)]' \
--raw-line '#![allow(dead_code)]' --raw-line 'use std::os::raw;' --rustfmt-bindings \
--raw-line '#![allow(dead_code)]' --raw-line 'use std::os::raw;' --formatter rustfmt \
--dynamic-loading NvmlLib -o genned_bindings.rs nvml.h \
-- -DNVML_NO_UNVERSIONED_FUNC_DEFS # Define `NVML_NO_UNVERSIONED_FUNC_DEFS` so we get generated bindings for legacy functions

Expand Down
Loading

0 comments on commit 1d71e81

Please sign in to comment.