Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: seperate crabml-vulkan and crabml-wgpu #192

Merged
merged 9 commits into from
May 19, 2024

Conversation

flaneur2020
Copy link
Collaborator

@flaneur2020 flaneur2020 commented May 19, 2024

Why separate these as standalone crates instead of putting them inside backends?

Different backends (like vulkan, wgpu, cuda, etc) are expected to have different dependencies, and these dependencies are always quite large, and sometimes have conflicts at runtime (likewise, if we had already initialized wgpu device, vulkano will hang on loading the libraries, at least on my laptop).

We have to carefully manage these dependencies via feature flags if we still keep them inside the same crate.

After separating them into different crates, it makes dependency management much easier. Additionally, we can abstract all of them under the same interface.

@flaneur2020 flaneur2020 marked this pull request as ready for review May 19, 2024 05:26
@flaneur2020 flaneur2020 merged commit 7fc4af6 into main May 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant