Skip to content

Commit

Permalink
Upgrade wgpu to 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Jul 23, 2024
1 parent c35c424 commit 7e187be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cubecl-wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cubecl-common = { path = "../cubecl-common", version = "0.1.1" }
cubecl-core = { path = "../cubecl-core", version = "0.1.1" }

bytemuck = { workspace = true }
wgpu = { version = "0.20.1", features = ["fragile-send-sync-non-atomic-wasm"] }
wgpu = { version = "22.0.0", features = ["fragile-send-sync-non-atomic-wasm"] }
pollster = { workspace = true }

log = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions crates/cubecl-wgpu/src/compute/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ where
module: &module,
entry_point: "main",
compilation_options: Default::default(),
cache: None,
}),
)
}
Expand Down
4 changes: 4 additions & 0 deletions crates/cubecl-wgpu/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ pub async fn select_device<G: GraphicsApi>(
label: None,
required_features: adapter.features(),
required_limits: limits,
// The default is MemoryHints::Performance, which tries to do some bigger
// block allocations. However, we already batch allocations, so we
// can use MemoryHints::MemoryUsage to lower memory usage.
memory_hints: wgpu::MemoryHints::MemoryUsage,
},
None,
)
Expand Down

0 comments on commit 7e187be

Please sign in to comment.