From 3692b4d631cc34de62ad17dd0519d8332d6231a3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 2 Jul 2012 02:51:38 +0200 Subject: [PATCH] Improve the detection of sparc --- driver/others/memory.c | 2 +- param.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 9b8863f39..af9b54eff 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1128,7 +1128,7 @@ static BLASULONG init_lock = 0UL; static void _touch_memory(blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n, void *sa, void *sb, BLASLONG pos) { -#ifndef ARCH_POWER +#if !defined(ARCH_POWER) && !defined(ARCH_SPARC) long size; BLASULONG buffer; diff --git a/param.h b/param.h index 5465c1cbd..c6cd354be 100644 --- a/param.h +++ b/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 #endif -#if defined(SPARC) && defined(V9) +#if (defined(SPARC) && defined(V9)) || defined(__sparc_v9__) #define SNUMOPT 2 #define DNUMOPT 2