Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Runtime GPU backend selection #386

Open
@philpax

Description

@philpax

At present, you can only compile support for one backend at a time, and you're locked into the choice of backend. As CLBlast and CuBLAS are both supported on Linux and Windows, this means that developers must distribute twice the number of binaries, and users may not be sure which binary to download.

I believe it may be possible to build support for all backends for a given platform, and switch which one gets activated at runtime. This option would only be on start-up (i.e. the application would need to restart to switch backends, due to ggml's leaky abstractions), but I think it should be possible otherwise.

This would allow developers to distribute one binary per platform, and (potentially) automatically select the best backend based on the available hardware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue:enhancementNew feature or requesttopic:api-designAPI design considerations, including new functionality and changestopic:clblasthttps://github.com/CNugteren/CLBlast supporttopic:cublashttps://developer.nvidia.com/cublas supporttopic:metalhttps://developer.apple.com/metal/ support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions