Skip to content

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

Merged
martin-frbg merged 7 commits intoOpenMathLib:developfrom
martin-frbg:3321-2n
Sep 1, 2021
Merged

Allocate an auxiliary struct when running out of preconfigured threads#3352
martin-frbg merged 7 commits intoOpenMathLib:developfrom
martin-frbg:3321-2n

Conversation

@martin-frbg
Copy link
Copy Markdown
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
Copy Markdown
Contributor

mattip commented Sep 1, 2021

Trying this out in MacPython/openblas-libs#66

Comment thread driver/others/memory.c
#include "common.h"

#ifndef likely
#ifdef __GNUC__
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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