Fixed #120. Merge the improvements for Debian archs.
Merge branch 'master' of https://github.com/sylvestre/OpenBLAS into develop
This commit is contained in:
commit
699fc7641f
|
@ -86,7 +86,13 @@ static inline int my_set_mempolicy(int mode, const unsigned long *addr, unsigned
|
||||||
return syscall(SYS_set_mempolicy, mode, addr, flag);
|
return syscall(SYS_set_mempolicy, mode, addr, flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int my_gettid(void) { return syscall(SYS_gettid); }
|
static inline int my_gettid(void) {
|
||||||
|
#ifdef SYS_gettid
|
||||||
|
return syscall(SYS_gettid);
|
||||||
|
#else
|
||||||
|
return getpid();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
7
ctest.c
7
ctest.c
|
@ -34,7 +34,7 @@ COMPILER_GNU
|
||||||
OS_LINUX
|
OS_LINUX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__FreeBSD__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
OS_FREEBSD
|
OS_FREEBSD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -70,6 +70,11 @@ OS_CYGWIN_NT
|
||||||
OS_INTERIX
|
OS_INTERIX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__gnu_hurd__)
|
||||||
|
/* Hurd is very similar to GNU/Linux, it should work out of the box */
|
||||||
|
OS_LINUX
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__i386) || defined(_X86)
|
#if defined(__i386) || defined(_X86)
|
||||||
ARCH_X86
|
ARCH_X86
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1128,7 +1128,7 @@ static BLASULONG init_lock = 0UL;
|
||||||
static void _touch_memory(blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n,
|
static void _touch_memory(blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n,
|
||||||
void *sa, void *sb, BLASLONG pos) {
|
void *sa, void *sb, BLASLONG pos) {
|
||||||
|
|
||||||
#ifndef ARCH_POWER
|
#if !defined(ARCH_POWER) && !defined(ARCH_SPARC)
|
||||||
|
|
||||||
long size;
|
long size;
|
||||||
BLASULONG buffer;
|
BLASULONG buffer;
|
||||||
|
|
2
param.h
2
param.h
|
@ -1482,7 +1482,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define GEMM_THREAD gemm_thread_mn
|
#define GEMM_THREAD gemm_thread_mn
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SPARC) && defined(V9)
|
#if (defined(SPARC) && defined(V9)) || defined(__sparc_v9__)
|
||||||
|
|
||||||
#define SNUMOPT 2
|
#define SNUMOPT 2
|
||||||
#define DNUMOPT 2
|
#define DNUMOPT 2
|
||||||
|
|
Loading…
Reference in New Issue