Skip to content

Allocate an auxiliary struct when running out of preconfigured threads #3352

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

Merged
merged 7 commits into from
Sep 1, 2021
Merged

Conversation

martin-frbg
Copy link
Collaborator

for #3321

@martin-frbg martin-frbg changed the title [WIP]Allocate an auxiliary struct when running out of preconfigured threads Allocate an auxiliary struct when running out of preconfigured threads Aug 29, 2021
@martin-frbg martin-frbg linked an issue Aug 29, 2021 that may be closed by this pull request
@martin-frbg martin-frbg added this to the 0.3.18 milestone Sep 1, 2021
@martin-frbg martin-frbg merged commit 3cdfe33 into OpenMathLib:develop Sep 1, 2021
@mattip
Copy link
Contributor

mattip commented Sep 1, 2021

Trying this out in MacPython/openblas-libs#66

@@ -73,6 +73,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "common.h"

#ifndef likely
#ifdef __GNUC__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about #if defined(__GNUC__) || defined(__clang__) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is clang likely to understand this (across all relevant versions) ? I copied this from the blas_server* files...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang 3.8 does which was released 5 years ago. That's the oldest I have access to. Here's what boost does, https://github.com/boostorg/config/blob/develop/include/boost/config/compiler/clang.hpp#L71-L77

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