Browse Source

do not compile fortran examples when running sanitize tools

Nathalie Furmento 10 years ago
parent
commit
51bbdda9f7
3 changed files with 12 additions and 5 deletions
  1. 3 0
      configure.ac
  2. 2 0
      examples/Makefile.am
  3. 7 5
      tests/Makefile.am

+ 3 - 0
configure.ac

@@ -2596,6 +2596,9 @@ AH_BOTTOM([
 #endif
 ])
 
+SANITIZE=$(echo $CFLAGS | grep sanitize)
+AM_CONDITIONAL(STARPU_SANITIZE, test -n "$SANITIZE")
+
 AC_OUTPUT([
 	Makefile
 	src/Makefile

+ 2 - 0
examples/Makefile.am

@@ -218,10 +218,12 @@ STARPU_EXAMPLES +=				\
 endif
 
 if STARPU_HAVE_FC
+if !STARPU_SANITIZE
 STARPU_EXAMPLES +=				\
 	fortran90/f90_example
 endif
 endif
+endif
 
 if !NO_BLAS_LIB
 STARPU_EXAMPLES +=				\

+ 7 - 5
tests/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2009-2015  Université de Bordeaux
-# Copyright (C) 2010, 2011, 2012, 2013, 2014  CNRS
+# Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
 # Copyright (C) 2010, 2011, 2012  INRIA
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -86,7 +86,7 @@ if !STARPU_CROSS_COMPILING
 LOADER			=	loader
 LOADER_BIN		=	$(abs_top_builddir)/tests/$(LOADER)
 else
-LOADER			=	
+LOADER			=
 LOADER_BIN		=	$(top_builddir)/tests/loader-cross.sh
 endif
 
@@ -287,9 +287,11 @@ noinst_PROGRAMS =				\
 	sched_policies/simple_cpu_gpu_sched
 
 if STARPU_HAVE_FC
+if !STARPU_SANITIZE
 noinst_PROGRAMS +=				\
 	fortran90/init_01
 endif
+endif
 
 if STARPU_LONG_CHECK
 noinst_PROGRAMS +=				\
@@ -625,7 +627,7 @@ endif
 ##################
 datawizard_interfaces_bcsr_bcsr_interface_SOURCES= \
 	datawizard/interfaces/test_interfaces.c \
-	datawizard/interfaces/bcsr/bcsr_interface.c 
+	datawizard/interfaces/bcsr/bcsr_interface.c
 
 if STARPU_USE_CUDA
 datawizard_interfaces_bcsr_bcsr_interface_SOURCES+= \
@@ -644,7 +646,7 @@ endif
 #################
 datawizard_interfaces_coo_coo_interface_SOURCES= \
 	datawizard/interfaces/test_interfaces.c \
-	datawizard/interfaces/coo/coo_interface.c 
+	datawizard/interfaces/coo/coo_interface.c
 
 if STARPU_USE_CUDA
 datawizard_interfaces_coo_coo_interface_SOURCES+= \
@@ -689,7 +691,7 @@ endif
 
 if STARPU_USE_OPENCL
 datawizard_interfaces_vector_test_vector_interface_SOURCES +=               \
-	datawizard/interfaces/vector/test_vector_opencl.c 
+	datawizard/interfaces/vector/test_vector_opencl.c
 nobase_STARPU_OPENCL_DATA_DATA += \
 	datawizard/interfaces/vector/test_vector_opencl_kernel.cl
 endif