OpenMathLib / OpenMathLib/OpenBLAS

Multithreaded Programming using OpenBLAS

Open
#4,217 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
7.6k
Forks
1.7k
Avg merge
1d 3h
Merged PRs (30d)
42

Description

I want to create 3 threads which are using gemm function with OpenBLAS.

Thread 1 - core affinity with CPU core 1 (openblas_set_num_threads(1))
Thread 2 - core affinity with CPU core 2,3 (openblas_set_num_threads(2))
Thread 3 - core affinity with CPU core 4,5,6 (openblas_set_num_threads(3))

Do those threads run at once without editing any codes of your library?

https://github.com/xianyi/OpenBLAS/wiki/faq#multi-threaded

I saw the link.
If I use the USE_THREAD and USE_LOCKING environment variables, will it behave like the above situation?

If that is correct, how do I use them?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the OpenBLAS FAQ section linked in the issue, then verify how USE_THREAD, USE_LOCKING, openblas_set_num_threads, and CPU affinity relate to concurrent gemm calls. Done means providing a clear answer about whether the three described threads can run concurrently and documenting the required usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
performance
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.