Skip to content

Add thread yield function for spin-loops. #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

devinamatthews
Copy link
Member

I noticed that TBLIS outperforms BLIS by about 30 GFLOP/s (400 vs. 370) on 12 cores of Lonestar 5 (both using OMP). To try and fix this I added a pause instruction in the spin-loop for Intel architectures, but alas there is no improvement. In any case, the optional macro BLIS_YIELD that I added in bli_kernel.h might be useful.

@fgvanzee, @tlrmchlsmth we should go over the respective codes at some point and figure out why TBLIS is faster.

@jeffhammond
Copy link
Member

Is the 8% deviation reproducible within a single job, i.e. the same node over a short time interval?

I'll see if I can reproduce locally.

@gaming-hacker
Copy link

what happened to this? why wasn't merged?

@devinamatthews
Copy link
Member Author

@gaming-hacker I haven't measured any performance improvement from pause (which isn't too surprising since it is best not to use HyperThreads with BLIS), so there isn't a real rush to merge. Also, it would probably behoove me to add a similar feature for ARM at the same time.

@jeffhammond
Copy link
Member

FYI the OpenBLAS have been looking at the same issue, but don't have a clear conclusion: OpenMathLib/OpenBLAS#1051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants