Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 0c56190

Browse files
authored
Merge pull request #194 from SludgePhD/wgpu-18
Update to wgpu 0.18
2 parents ec54ef7 + 2252866 commit 0c56190

File tree

7 files changed

+110
-31
lines changed

7 files changed

+110
-31
lines changed

Cargo.lock

Lines changed: 105 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wonnx-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protobuf = { version = "2.27.1", features = ["with-bytes"] }
3030
structopt = { version = "0.3.26", features = ["paw"] }
3131
thiserror = "1.0.31"
3232
tract-onnx = { version = "0.19.12", optional = true }
33-
wgpu = "0.17.1"
33+
wgpu = "0.18.0"
3434
wonnx = { version = "^0.5.1" }
3535
wonnx-preprocessing = { version = "^0.5.1" }
3636
human_bytes = "0.4.1"

wonnx-cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async fn run() -> Result<(), NNXError> {
3131
let instance_descriptor = wgpu::InstanceDescriptor {
3232
backends,
3333
dx12_shader_compiler: wgpu::Dx12Compiler::Fxc,
34+
..Default::default()
3435
};
3536
let instance = wgpu::Instance::new(instance_descriptor);
3637
let adapters = instance.enumerate_adapters(wgpu::Backends::all());

wonnx-preprocessing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ protobuf = { version = "2.27.1", features = ["with-bytes"] }
2020
thiserror = "1.0.31"
2121
tokenizers = "0.13.3"
2222
tract-onnx = { version = "0.19.2", optional = true }
23-
wgpu = "0.17.1"
2423
wonnx = { version = "^0.5.1" }
2524
serde_json = "^1.0"
2625
bytemuck = "1.9.1"

wonnx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exclude = [
2222
]
2323

2424
[dependencies]
25-
wgpu = "0.17.1"
25+
wgpu = "0.18.0"
2626
bytemuck = { version = "1.9.1", features = ["extern_crate_alloc"] }
2727
protobuf = { version = "2.27.1", features = ["with-bytes"] }
2828
log = "0.4.17"

wonnx/src/gpu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,7 @@ impl GpuStep {
997997
..
998998
} => {
999999
// Encode a command for invocation of a shader.
1000-
let mut compute_pass =
1001-
encoder.begin_compute_pass(&wgpu::ComputePassDescriptor { label: None });
1000+
let mut compute_pass = encoder.begin_compute_pass(&Default::default());
10021001
compute_pass.set_pipeline(pipeline);
10031002
for (index, bind_group) in bind_groups.iter().enumerate() {
10041003
compute_pass.set_bind_group(index as u32, bind_group, &[]);

wonnx/src/resource.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub async fn request_device_queue() -> (wgpu::Device, wgpu::Queue) {
66
let instance_descriptor = wgpu::InstanceDescriptor {
77
backends,
88
dx12_shader_compiler: wgpu::Dx12Compiler::Fxc,
9+
..Default::default()
910
};
1011
let instance = wgpu::Instance::new(instance_descriptor);
1112
let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, None)

0 commit comments

Comments
 (0)