瀏覽代碼

Include valgrind.h in helper.h, not directly in the tests.

Cyril Roelandt 13 年之前
父節點
當前提交
685f84fcdb
共有 51 個文件被更改,包括 4 次插入150 次删除
  1. 0 3
      tests/core/deprecated_buffer.c
  2. 0 3
      tests/core/deprecated_func.c
  3. 0 3
      tests/core/get_current_task.c
  4. 0 3
      tests/core/insert_task.c
  5. 0 3
      tests/core/starpu_task_bundle.c
  6. 0 3
      tests/datawizard/acquire_cb_insert.c
  7. 0 3
      tests/datawizard/acquire_release.c
  8. 0 3
      tests/datawizard/acquire_release2.c
  9. 0 3
      tests/datawizard/critical_section_with_void_interface.c
  10. 0 3
      tests/datawizard/data_implicit_deps.c
  11. 0 3
      tests/datawizard/data_invalidation.c
  12. 0 3
      tests/datawizard/increment_redux.c
  13. 0 3
      tests/datawizard/increment_redux_v2.c
  14. 0 3
      tests/datawizard/interfaces/bcsr/bcsr_interface.c
  15. 0 3
      tests/datawizard/interfaces/bcsr/bcsr_opencl.c
  16. 0 3
      tests/datawizard/interfaces/block/block_interface.c
  17. 0 3
      tests/datawizard/interfaces/block/block_opencl.c
  18. 0 3
      tests/datawizard/interfaces/csr/csr_interface.c
  19. 0 3
      tests/datawizard/interfaces/csr/csr_opencl.c
  20. 0 3
      tests/datawizard/interfaces/matrix/matrix_interface.c
  21. 0 3
      tests/datawizard/interfaces/matrix/matrix_opencl.c
  22. 0 3
      tests/datawizard/interfaces/multiformat/advanced/generic.c
  23. 0 3
      tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets.c
  24. 0 3
      tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets_opencl.c
  25. 0 3
      tests/datawizard/interfaces/multiformat/multiformat_interface.c
  26. 0 3
      tests/datawizard/interfaces/multiformat/multiformat_opencl.c
  27. 0 3
      tests/datawizard/interfaces/variable/variable_interface.c
  28. 0 3
      tests/datawizard/interfaces/variable/variable_opencl.c
  29. 0 3
      tests/datawizard/interfaces/vector/test_vector_interface.c
  30. 0 3
      tests/datawizard/interfaces/vector/test_vector_opencl.c
  31. 0 3
      tests/datawizard/lazy_allocation.c
  32. 0 3
      tests/datawizard/manual_reduction.c
  33. 0 3
      tests/datawizard/mpi_like.c
  34. 0 3
      tests/datawizard/mpi_like_async.c
  35. 0 3
      tests/datawizard/scal.c
  36. 0 3
      tests/datawizard/scratch.c
  37. 0 3
      tests/datawizard/sync_and_notify_data.c
  38. 0 3
      tests/datawizard/sync_and_notify_data_implicit.c
  39. 0 3
      tests/datawizard/sync_and_notify_data_opencl.c
  40. 0 3
      tests/datawizard/write_only_tmp_buffer.c
  41. 0 3
      tests/errorcheck/invalid_blocking_calls.c
  42. 4 0
      tests/helper.h
  43. 0 3
      tests/opt/datawizard/wt_broadcast.c
  44. 0 3
      tests/opt/datawizard/wt_host.c
  45. 0 3
      tests/overlap/overlap.c
  46. 0 3
      tests/parallel_tasks/explicit_combined_worker.c
  47. 0 3
      tests/parallel_tasks/parallel_kernels.c
  48. 0 3
      tests/parallel_tasks/parallel_kernels_spmd.c
  49. 0 3
      tests/parallel_tasks/spmd_pgreedy.c
  50. 0 3
      tests/perfmodels/non_linear_regression_based.c
  51. 0 3
      tests/perfmodels/regression_based.c

+ 0 - 3
tests/core/deprecated_buffer.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/core/deprecated_func.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/core/get_current_task.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>

+ 0 - 3
tests/core/insert_task.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/core/starpu_task_bundle.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/acquire_cb_insert.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/acquire_release.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/acquire_release2.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/critical_section_with_void_interface.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/data_implicit_deps.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/data_invalidation.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/increment_redux.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/increment_redux_v2.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/interfaces/bcsr/bcsr_interface.c

@@ -15,9 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/bcsr/bcsr_opencl.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/block/block_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/block/block_opencl.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/csr/csr_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/csr/csr_opencl.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/matrix/matrix_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/matrix/matrix_opencl.c

@@ -13,9 +13,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/multiformat/advanced/generic.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu_data_interfaces.h>
 #include "generic.h"
 #include "../../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "multiformat_types.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets_opencl.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/multiformat/multiformat_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "multiformat_types.h"
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/multiformat/multiformat_opencl.c

@@ -13,9 +13,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/variable/variable_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 

+ 0 - 3
tests/datawizard/interfaces/variable/variable_opencl.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/interfaces/vector/test_vector_interface.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../test_interfaces.h"
 #include "../../../helper.h"

+ 0 - 3
tests/datawizard/interfaces/vector/test_vector_opencl.c

@@ -14,9 +14,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../test_interfaces.h"

+ 0 - 3
tests/datawizard/lazy_allocation.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/manual_reduction.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/datawizard/mpi_like.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <errno.h>
 #include <pthread.h>

+ 0 - 3
tests/datawizard/mpi_like_async.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <pthread.h>
 #include "../helper.h"

+ 0 - 3
tests/datawizard/scal.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "scal.h"

+ 0 - 3
tests/datawizard/scratch.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/sync_and_notify_data.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/sync_and_notify_data_implicit.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/datawizard/sync_and_notify_data_opencl.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <starpu_opencl.h>
 #include "../helper.h"

+ 0 - 3
tests/datawizard/write_only_tmp_buffer.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/errorcheck/invalid_blocking_calls.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 4 - 0
tests/helper.h

@@ -17,6 +17,10 @@
 #include <errno.h>
 #include <common/utils.h>
 
+#ifdef STARPU_HAVE_VALGRIND_H
+#include <valgrind/valgrind.h>
+#endif
+
 #define STARPU_TEST_SKIPPED 77
 
 //void *ALL_IS_OK = (void *)123456789L;

+ 0 - 3
tests/opt/datawizard/wt_broadcast.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../../helper.h"
 

+ 0 - 3
tests/opt/datawizard/wt_host.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../../helper.h"
 

+ 0 - 3
tests/overlap/overlap.c

@@ -17,9 +17,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 3
tests/parallel_tasks/explicit_combined_worker.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <limits.h>
 #include <unistd.h>

+ 0 - 3
tests/parallel_tasks/parallel_kernels.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <limits.h>
 #include <unistd.h>

+ 0 - 3
tests/parallel_tasks/parallel_kernels_spmd.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <limits.h>
 #include <unistd.h>

+ 0 - 3
tests/parallel_tasks/spmd_pgreedy.c

@@ -15,9 +15,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include <limits.h>
 #include <unistd.h>

+ 0 - 3
tests/perfmodels/non_linear_regression_based.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"
 

+ 0 - 3
tests/perfmodels/regression_based.c

@@ -16,9 +16,6 @@
  */
 
 #include <config.h>
-#if STARPU_HAVE_VALGRIND_H
-#include <valgrind/valgrind.h>
-#endif
 #include <starpu.h>
 #include "../helper.h"