Skip to content

Commit

Permalink
Merge pull request #35 from ArthurBrussee/wgpu-upgrade
Browse files Browse the repository at this point in the history
Upgrade wgpu to 22.0.0
  • Loading branch information
nathanielsimard authored Jul 24, 2024
2 parents 18b92ba + 7e187be commit 271a527
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 271a527

Please sign in to comment.