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
7 years ago
Martin Kroeker
7646974227
Limit the additional locking from PRs 1052,1299 to non-OpenMP multithreading
7 years ago
Martin Kroeker
8866e393a2
Revert "Add locks only for non-OPENMP multithreading"
7 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
7 years ago
Erik M. Bray
8f5f614615
On Cygwin use mmap instead of Windows native allocation functions, which are not fork-safe.
7 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.
7 years ago
Andrew
e5752ff9b3
take out unused variables
7 years ago
Andrew
bfc2a88594
remove unused buffer
7 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
e882f3d6f3
Fix thread data race in memory.c
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
731c518cff
Add files via upload
8 years ago
Martin Kroeker
29fc429d9a
Honor cgroup/cpuset constraints when enumerating cpus
8 years ago
Neil Shipp
65e56cb29d
Add 64bit support for Microsoft Visual Studio
8 years ago
James Cowgill
59c97cfee4
memory: Fix buffer overflow when position == NUM_BUFFERS
8 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.
8 years ago
Ashwin Sekhar T K
4713e7c47f
ARM64: Add the VULCAN Target
9 years ago
Martin Kroeker
51aa157e64
Relocate declaration of alloc_lock outside ifdef block
8 years ago
Martin Kroeker
87c7d10b34
Fix thread data races detected by helgrind 3.12
Ref. #995 , may possibly help solve issues seen in 660,883
8 years ago
Zhang Xianyi
66c9a9b33d
Merge pull request #981 from howard0su/develop
USE NPROCESSOR_CONF instaed of NPORCESSOR_ONLN
9 years ago
Howard Su
ff1da01476
USE NPROCESSOR_CONF instaed of NPORCESSOR_ONLN
to determine the number of CPU. In ARM platform,
online CPU will increasing when there is more workload.
while configure cpu is the max number of CPU.
9 years ago
Zhang Xianyi
ef52a9266b
Fixed #979 . Patch for NetBSD.
9 years ago
Theoractice
aa744dfa59
Update memory.c
9 years ago
theoractice
61cf8f74d9
Fix access violation on Windows while static linking
9 years ago
Zhang Xianyi
05196a8497
Refs #716 . Only call getenv at init function.
9 years ago
Zhang Xianyi
6b85dbb6dc
Refs #696 . Turn off stack limit setting on Linux.
I cannot reproduce SEGFAULT of lapack-test with default stack size
on ARM Linux.
9 years ago
Zhang Xianyi
f5df444ceb
Merge pull request #762 from jeromerobert/bug760
Let openblas_get_num_threads return the number of active threads
9 years ago
Zhang Xianyi
aaa8551c57
Merge pull request #749 from lotheac/illumos_fixes
illumos fixes
9 years ago
Jerome Robert
0d87c1ffb6
Let openblas_get_num_threads return the number of active threads
... not the number of allocated threads.
Close #760
9 years ago
Lauri Tirkkonen
97cd4b8aee
illumos fixes to memory.c
9 years ago
Werner Saar
0d22551a6b
increase the stack size limit in the constructor
10 years ago
Ralph Campbell
fbc21266e6
Minor C code fixes in driver/
10 years ago
Zhang Xianyi
2feef49fa8
Merge branch 'develop' into cmake
Conflicts:
driver/others/memory.c
10 years ago
Zhang Xianyi
1ce054fcb3
Refs #669 . Fixed the build bug with gcc on Mac OS X.
10 years ago
Zhang Xianyi
94b125255f
Merge branch 'develop' into cmake
Conflicts:
driver/others/memory.c
10 years ago
Zhang Xianyi
11ac4665c8
Fixed #654 . Make sure the gotoblas_init function is run before all other static initializations.
10 years ago
Grazvydas Ignotas
d3e2f0a1af
add missing barriers
should fix issue #597
10 years ago
Zhang Xianyi
dcd5ba4443
Merge branch 'cmake' of https://github.com/hpanderson/OpenBLAS into hpanderson_cmake
10 years ago
Zhang Xianyi
a11555c715
Support Android NDK armeabi-v7a-hard ABI. (-mfloat-abi=hard)
e.g.
make HOSTCC=gcc CC=arm-linux-androideabi-gcc NO_LAPACK=1 TARGET=ARMV7
In Android NDK, it uses armeabi-v7a-hard ABI.
TARGET_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard
For more information, please check hard-float example at
android_ndk/tests/device/hard-float/jni/.
10 years ago
powderluv
ebb9eba987
Fix build with ALLOC_SHM=0 (Android NDK)
Refactor such that you can build with ALLOC_SHM=0. HughTLB
implicity depends on ALLOC_SHM=1. This patch allows
building for Android NDK r10d.
10 years ago
Zhang Xianyi
9798481979
Refs #478 , #482 . Fix segfault bug for gemv_t with MAX_ALLOC_STACK flag.
For gemv_t, directly use malloc to create the buffer.
10 years ago
Ton van den Heuvel
b6438dedea
Fix issue #508
Fix race condition during shutdown causing a crash in
gotoblas_set_affinity().
10 years ago
Hank Anderson
5ae8993752
Added intrinsics for MSVC.
10 years ago
Hank Anderson
84d90d6ed8
Fixed some compiler errors/warnings for clang.
10 years ago
Zhang Xianyi
cfa9392ffa
Fix openblas_get_num_threads and openblas_get_num_procs bug with single thread.
10 years ago
Erik Schnetter
65a847cd36
Introduce openblas_get_num_threads and openblas_get_num_procs
10 years ago
Zhang Xianyi
2fb02626da
Update organization info.
11 years ago
Isaac Dunham
f7eb81a846
Fix link error on Linux/musl.
get_nprocs() is a GNU convenience function equivalent to POSIX2008
sysconf(_SC_NPROCESSORS_ONLN); the latter should be available in unistd.h
on any current *nix. (OS X supports this call since 10.5, and FreeBSD
currently supports it. But this commit does not change FreeBSD or OS X
versions.)
11 years ago