Skip to content

Add a way to change the number of openblas threads in ggml #452

@klosax

Description

@klosax

Openblas defaults to the maximum available threads (not physical cores) which is usually not optimal. User code should be able to control this directly to get optimal performance.

The number of threads used by openblas can be changed using:

void goto_set_num_threads(int num_threads);
void openblas_set_num_threads(int num_threads);

https://github.com/xianyi/OpenBLAS#setting-the-number-of-threads-at-runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions