From 21e113c53ad0f6b2d334b04e951eaf274a0423f0 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 24 Apr 2012 10:35:24 +0200 Subject: [PATCH] avoid compiling of SCC features on non-SCC systems --- apps/jacobi.c | 4 ++++ arch/x86/scc/RCCE_reduce.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/apps/jacobi.c b/apps/jacobi.c index 04375cf3..96fca71a 100644 --- a/apps/jacobi.c +++ b/apps/jacobi.c @@ -26,6 +26,8 @@ #include #include +#ifdef CONFIG_ROCKCREEK + #define MATRIX_SIZE 256 #define MAXVALUE 1337 #define PAGE_SIZE 4096 @@ -366,3 +368,5 @@ int jacobi(void* argv) return 0; } + +#endif diff --git a/arch/x86/scc/RCCE_reduce.c b/arch/x86/scc/RCCE_reduce.c index 21df8090..787bd1da 100644 --- a/arch/x86/scc/RCCE_reduce.c +++ b/arch/x86/scc/RCCE_reduce.c @@ -34,6 +34,8 @@ #include #include +#ifdef CONFIG_ROCKCREEK + //-------------------------------------------------------------------------------------- // FUNCTION: RCCE_reduce_general //-------------------------------------------------------------------------------------- @@ -185,3 +187,4 @@ int RCCE_reduce( RCCE_reduce_general(inbuf, outbuf, num, type, op, root, all, comm))); } +#endif