flame / blis

BLAS-like Library Instantiation Software Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detection of OpenMP parallel regions

egaudry opened this issue · comments

As a user of BLIS, I would like to be warned of possible runtime conflicts linked to OpenMP parallel regions when running with multiple threads. It could be nice as well to automatically reduce the number of threads used by BLIS in such scenarios.

The key benefit would be to help identifying possible stalling issues (as in #588). It would help to compete with alternatives BLAS implementations (MKL seems to provide a detection/adaptation strategy and OpenBLAS have a simple warning approach that fulfill the awareness needs).

On the question whether or not developers should better know their codes and identify such situations by themselves, I would agree. However, it is not always possible (source code unavailable, nested dependencies, etc.).

Ideally, this could be a runtime/build-time option, to control any overhead/complexities associated with its implementation.

@devinamatthews @jeffhammond

I'll take this one. I agree with you that it's a good feature. I'll let Devin and Field decide if it should be on by default or not. Will depend on the overhead.