Skip to content

Multi-threaded С Binaries with TBB/OMP #525

@check4game

Description

@check4game

Hello!

I read the document from the link #445, but I still don’t understand why OMP can’t be used.

I wrote a simple test based on example.c, which measures the time in 4 options for calculating blake3 for a file
https://github.com/check4game/MTBlake3

the result can be seen in the file https://github.com/check4game/MTBlake3/blob/main/i7-10700K.results.txt

it is important that the TBB2 and OMP2 results are the same

but, I found a problem with the implementation of tbb in the current version of blake3, on my computer the CPU load is 100%

CPU Usage: SGL,  1 Threads | 8%
CPU Usage: TBB, 16 Threads | 100%
CPU Usage: TBB,  2 Threads | 16%
CPU Usage: OMP,  2 Threads | 16%

thanks for your attention, I hope this is useful.

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