Skip to content

Commit

Permalink
Add wgpu spirv required features
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherJingkongChen committed Nov 12, 2024
1 parent c6ec950 commit ba78b17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/cubecl-wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ default = [
"cubecl-runtime/default",
"cubecl-common/default",
"cubecl-core/default",
"spirv",
]
exclusive-memory-only = ["cubecl-runtime/exclusive-memory-only"]
spirv = ["cubecl-spirv", "ash"]
spirv = ["cubecl-spirv", "ash", "wgpu/spirv", "wgpu-core/vulkan"]
std = ["cubecl-runtime/std", "cubecl-common/std", "cubecl-core/std"]

spirv-dump = ["sanitize-filename"]
Expand All @@ -36,6 +37,8 @@ cubecl-spirv = { path = "../cubecl-spirv", version = "0.4.0", optional = true }

bytemuck = { workspace = true }
wgpu = { version = "23.0.0", features = ["fragile-send-sync-non-atomic-wasm"] }
wgpu-core = { version = "23.0.0" }
wgpu-hal = { version = "23.0.0" }

async-channel = { workspace = true }
derive-new = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/cubecl-wgpu/src/compiler/spirv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn request_device(
adapter
.device_from_raw(
vk_device,
true,
None,
&device_extensions,
features,
&wgpu::MemoryHints::MemoryUsage,
Expand Down

0 comments on commit ba78b17

Please sign in to comment.