Martin Kroeker
41ae8e8d67
Add threading and OpenMP information to output
For #1416 and #1529 , more information about the options OpenBLAS was built with is needed. Additionally we may want to add this data to the openblas.pc file (but not all projects use pkgconfig, and as far as I am aware the cmake module for accessing it does not make such "private" declarations available)
8 years ago
zhiyong.dang
53457f222f
move _Atomic define to common.h
8 years ago
Zhiyong Dang
3716267124
Change _STDC_VERSION__ to __STDC_VERSION__
Change-Id: Id3fa4e8d9eedd4ef7230df69b611e7f397301a42
8 years ago
Zhiyong Dang
1b83341d19
Fix race condition in blas_server_omp.c
Change-Id: Ic896276cd073d6b41930c7c5a29d66348cd1725d
8 years ago
Martin Kroeker
f29389c7ac
Merge pull request #1520 from martin-frbg/cpucounts
Catch invalid cpu count returned by CPU_COUNT_S
8 years ago
Martin Kroeker
7c861605b2
Catch invalid cpu count returned by CPU_COUNT_S
mips32 was seen to return zero here, driving nthreads to zero with subsequent fpe in blas_quickdivide
8 years ago
Martin Kroeker
d636b418af
Merge pull request #1504 from ararslan/aa/openbsd
Allow building on OpenBSD
8 years ago
Alex Arslan
a41d241a0e
Add support for DragonFly BSD
8 years ago
Alex Arslan
8da6b6ae52
Allow building on OpenBSD
With this change, OpenBLAS builds and all tests pass on OpenBSD 6.2
using Clang. Tested on x86-64 only, with and without DYNAMIC_ARCH=1.
8 years ago
Martin Kroeker
01c4b82f04
Update memory.c
8 years ago
Martin Kroeker
93db123f7e
Update memory.c
8 years ago
Martin Kroeker
752fdb5dd8
Add workaround for old gcc and clang versions
Old gcc and clang do not handle constructor arguments, finally fix #875 as discussed there, using the fedora patch
8 years ago
Martin Kroeker
7646974227
Limit the additional locking from PRs 1052,1299 to non-OpenMP multithreading
8 years ago
Martin Kroeker
8866e393a2
Revert "Add locks only for non-OPENMP multithreading"
8 years ago
Martin Kroeker
3119b2ab4c
Add locks only for non-OPENMP multithreading
to migitate performance problems caused by #1052 and #1299 as seen in #1461
8 years ago
Erik M. Bray
8f5f614615
On Cygwin use mmap instead of Windows native allocation functions, which are not fork-safe.
8 years ago
Erik M. Bray
f5fc109fbd
Perform blas_thread_shutdown with pthread_atfork() on Cygwin
Even if we're directly using the win32 threading driver and not pthreads,
pthread_atfork still works fine to register a pre-fork handler, and is
necessary to restore the threading server to a pre-initialized state.
8 years ago
Andrew
e5752ff9b3
take out unused variables
8 years ago
Andrew
8a0b086b28
add missing bracket for old glibc (cppcheck)
8 years ago
Andrew
8aafa0473c
address last warnings as seen by gcc7
8 years ago
Andrew
bfc2a88594
remove unused buffer
8 years ago
Martin Kroeker
28ae3ca76f
Limit MAX_CPU to 1024 for now
Some Linux distributions (notably SuSE) have raised CPU_SETSIZE to 4096, apparently disregarding API limitations.
From #1348 , the highest value to survive array initialization (on a desktop system) is 3232, and 1024 - which is the
more usual CPU_SETSIZE limit, was demonstrated to work fine on an actual bignuma system.
8 years ago
Martin Kroeker
07e7c36dac
Handle shmem init failures in cpu affinity setup code
Failures to obtain or attach shared memory segments would lead to an exit without explanation of the exact cause.
This change introduces a more verbose error message and tries to make the code continue without setting cpu affinity.
Fixes #1351
8 years ago
Martin Kroeker
2a6fef9a55
Try to handle shmget or shmat failing
also replaces one verbatim sched_yield with the YIELDING macro for consistency as suggested in #1351
8 years ago
Martin Kroeker
514d237257
Merge pull request #1279 from xsacha/develop
CMake improvements
8 years ago
Martin Kroeker
ba1f91f17b
Convert another caller of "allocation" to LOCK_COMMAND
... as the "allocation" code jumped to now does UNLOCK_COMMAND instead of blas_unlock
8 years ago
Martin Kroeker
f460776f0f
Fix thread data races
8 years ago
Martin Kroeker
e882f3d6f3
Fix thread data race in memory.c
8 years ago
Sacha Refshauge
37858d1146
Fix threading usage in CMake: s/SMP/USE_THREAD/
8 years ago
Isuru Fernando
2f12ea017b
No strncasecmp with MSVC
8 years ago
Martin Kroeker
ebb04e3265
Merge pull request #1259 from isuruf/cmake
CMake Improvements
8 years ago
Isuru Fernando
d245caa49a
Support out-of-source build
8 years ago
Martin Kroeker
63cfa32691
Rework __GLIBC_PREREQ checks to avoid breaking non-glibc builds
8 years ago
Martin Kroeker
c4af196a2d
Honor cgroup/cpuset limits when enumerating cpus
8 years ago
Martin Kroeker
480e697681
Revert "Honor cgroup/cpuset limits when enumerating cpus" ( #1246 )
8 years ago
Martin Kroeker
80373ea039
More fixes for silly misedits
9 years ago
Martin Kroeker
d12b75a6c4
Fixup braces lost in previous edit
9 years ago
Martin Kroeker
7294fb1d9d
Merge branch 'develop' into cgroups
9 years ago
Martin Kroeker
731c518cff
Add files via upload
9 years ago
Martin Kroeker
29fc429d9a
Honor cgroup/cpuset constraints when enumerating cpus
9 years ago
Martin Kroeker
3db2adf872
Merge pull request #1230 from martin-frbg/rhel5
Add sched_getcpu implementation for pre-2.6 glibc
9 years ago
Martin Kroeker
c1cf62d2c0
Add sched_getcpu implementation for pre-2.6 glibc
Fixes #1210 , compilation on RHEL5 with affinity enabled
9 years ago
Neil Shipp
34513be726
Add Microsoft Windows 10 UWP build support
9 years ago
Neil Shipp
65e56cb29d
Add 64bit support for Microsoft Visual Studio
9 years ago
James Cowgill
59c97cfee4
memory: Fix buffer overflow when position == NUM_BUFFERS
9 years ago
James Cowgill
5fecfe0f42
memory: switch loop condition around in blas_memory_free
Before this commit, the "position < NUM_BUFFERS" loop condition from
blas_memory_free will be completely optimized away by GCC. This is
because the condition can only be false after undefined behavior has
already been invoked (reading past the end of an array). As a
consequence of this bug, GCC also removes the subsequent if statement
and all the code after the error label because all of it is dead.
This commit switches the loop condition around so it works as intended.
9 years ago
Gian-Carlo Pascutto
9c884986ad
Add an extra familiy/model combination used by AMD Steamrolller (Godavari).
9 years ago
Gian-Carlo Pascutto
0cbd2d34e4
Recognize ZEN when passed as OPENBLAS_CORETYPE.
9 years ago
Gian-Carlo Pascutto
62979fd104
Fix dynamic detection for ZEN CPUs.
9 years ago
Denis Steckelmacher
c9ff735da6
Add ZEN support (tested for auto-detected static backend)
9 years ago