Skip to content

Using both the GPU and CPU simultaneously #1570

Answered by bobqianic
paralin asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to use both the CPU and GPU at the same time?

It could become feasible in the future, once the scheduler is fully implemented in the ggml backend.

The CPU seems to be saturated, is it using the GPU? Or both?

Starting from version 1.5.0, the majority of the graph processing has been shifted to the GPU. As a result, the CPU threads spend most of their time idle, simply waiting for data from the GPU.

What should I set threads to?

In the latest version of whisper.cpp, the CPU mainly performs two functions. First, it processes the log-mel spectrogram and then determines the most suitable next token based on the model's output during sampling. For shorter audio files, setti…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bobqianic
Comment options

@paralin
Comment options

Answer selected by paralin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants