Skip to content

Commit

Permalink
Update to wgpu 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Oct 17, 2023
1 parent 564efaa commit 3e9b0f5
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 32 deletions.
83 changes: 55 additions & 28 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 wonnx-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protobuf = { version = "2.27.1", features = ["with-bytes"] }
structopt = { version = "0.3.26", features = ["paw"] }
thiserror = "1.0.31"
tract-onnx = { version = "0.19.12", optional = true }
wgpu = "0.16.0"
wgpu = "0.17.1"
wonnx = { version = "^0.5.1" }
wonnx-preprocessing = { version = "^0.5.1" }
human_bytes = "0.4.1"
Expand Down
2 changes: 1 addition & 1 deletion wonnx-preprocessing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protobuf = { version = "2.27.1", features = ["with-bytes"] }
thiserror = "1.0.31"
tokenizers = "0.13.3"
tract-onnx = { version = "0.19.2", optional = true }
wgpu = "0.16.0"
wgpu = "0.17.1"
wonnx = { version = "^0.5.1" }
serde_json = "^1.0"
bytemuck = "1.9.1"
Expand Down
2 changes: 1 addition & 1 deletion wonnx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exclude = [
]

[dependencies]
wgpu = "0.16.0"
wgpu = "0.17.1"
bytemuck = { version = "1.9.1", features = ["extern_crate_alloc"] }
protobuf = { version = "2.27.1", features = ["with-bytes"] }
log = "0.4.17"
Expand Down
2 changes: 1 addition & 1 deletion wonnx/src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub async fn request_device_queue() -> (wgpu::Device, wgpu::Queue) {
dx12_shader_compiler: wgpu::Dx12Compiler::Fxc,
};
let instance = wgpu::Instance::new(instance_descriptor);
let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, backends, None)
let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, None)
.await
.expect("No GPU found given preference");

Expand Down

0 comments on commit 3e9b0f5

Please sign in to comment.