-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: seperate crabml-vulkan and crabml-wgpu (#192)
* extract wgpu-backend * extract wgpu crate * seperate crabml-vulkan * seperate test cases * fix workflow * fix workflow * tune workflow * restrict threads * retry test
- Loading branch information
1 parent
b530ce6
commit 7fc4af6
Showing
31 changed files
with
91 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "crabml-vulkan" | ||
version = { workspace = true } | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
repository = { workspace = true } | ||
description = "crabml vulkan support" | ||
|
||
[dependencies] | ||
int-enum = "0.5.0" | ||
half = { version = "2.3.1" } | ||
env_logger = "0.10" | ||
pollster = "0.2.4" | ||
bytemuck = { version = "1.14.0", features = ["derive"] } | ||
vulkano = "0.34.1" | ||
vulkano-shaders = "0.34.0" | ||
crabml = { workspace = true } | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "1.2.1" | ||
bencher = "0.1.5" | ||
approx = "0.5.1" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "crabml-wgpu" | ||
version = { workspace = true } | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
repository = { workspace = true } | ||
description = "crabml wgpu support" | ||
|
||
[dependencies] | ||
int-enum = "0.5.0" | ||
half = { version = "2.3.1" } | ||
wgpu = "0.19.1" | ||
env_logger = "0.10" | ||
pollster = "0.2.4" | ||
bytemuck = { version = "1.14.0", features = ["derive"] } | ||
byteorder = "1.5.0" | ||
crabml = { workspace = true } | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "1.2.1" | ||
bencher = "0.1.5" | ||
approx = "0.5.1" |
3 changes: 3 additions & 0 deletions
3
crabml-core/src/backends/wgpu/mod.rs → crabml-wgpu/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#![feature(thread_local)] | ||
#![feature(lazy_cell)] | ||
|
||
mod meta; | ||
mod wgpu_device; | ||
mod wgpu_tensor; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters