浏览代码

tests: memory leaks have all been fixed

Nathalie Furmento 13 年之前
父节点
当前提交
fa20faa1b9

+ 0 - 2
tests/datawizard/acquire_cb_insert.c

@@ -18,8 +18,6 @@
 #include <starpu.h>
 #include "../helper.h"
 
-#warning memory leak
-
 #define N 16
 #define M 4
 #define X 2

+ 3 - 3
tests/datawizard/acquire_release2.c

@@ -18,8 +18,6 @@
 #include <starpu.h>
 #include "../helper.h"
 
-#warning memory leak
-
 static unsigned ntasks = 40000;
 
 #ifdef STARPU_USE_CUDA
@@ -62,7 +60,9 @@ void callback(void *arg __attribute__ ((unused)))
         starpu_data_release(token_handle);
 }
 
-#warning TODO add threads
+#ifdef STARPU_DEVEL
+#  warning TODO add threads
+#endif
 
 int main(int argc, char **argv)
 {

+ 0 - 2
tests/datawizard/increment_redux.c

@@ -26,8 +26,6 @@
 #include <starpu_opencl.h>
 #endif
 
-#warning memory leak
-
 static unsigned var = 0;
 static starpu_data_handle_t handle;
 

+ 0 - 2
tests/datawizard/increment_redux_lazy.c

@@ -25,8 +25,6 @@
 #include <starpu_opencl.h>
 #endif
 
-#warning memory leak
-
 static starpu_data_handle_t handle;
 
 /*

+ 0 - 2
tests/datawizard/increment_redux_v2.c

@@ -25,8 +25,6 @@
 #include <starpu_opencl.h>
 #endif
 
-#warning memory leak
-
 static unsigned var = 0;
 static starpu_data_handle_t handle;
 

+ 0 - 2
tests/datawizard/mpi_like.c

@@ -24,8 +24,6 @@
 #define NTHREADS	4
 #define NITER		2
 
-#warning memory leak
-
 //static pthread_cond_t cond;
 //static pthread_mutex_t mutex;
 

+ 0 - 2
tests/datawizard/mpi_like_async.c

@@ -26,8 +26,6 @@
 static int nthreads = NTHREADS_DEFAULT;
 static int niter = NITER_DEFAULT;
 
-#warning memory leaks
-
 //#define DEBUG_MESSAGES	1
 
 //static pthread_cond_t cond;

+ 0 - 2
tests/datawizard/scratch.c

@@ -23,8 +23,6 @@
 #include <stdlib.h>
 #include "../helper.h"
 
-#warning memory leaks
-
 #define NLOOPS		128
 #define VECTORSIZE	1024
 

+ 0 - 2
tests/datawizard/sync_with_data_with_mem.c

@@ -22,8 +22,6 @@
 #include <stdlib.h>
 #include "../helper.h"
 
-#warning memory leak
-
 #define NBUFFERS_DEF	64
 #define NITER_DEF	128
 #define VECTORSIZE_DEF	1024

+ 0 - 2
tests/datawizard/sync_with_data_with_mem_non_blocking.c

@@ -23,8 +23,6 @@
 #include <pthread.h>
 #include "../helper.h"
 
-#warning memory leak
-
 #define NBUFFERS_DEF	64
 #define NITER_DEF	128
 #define VECTORSIZE_DEF	1024

+ 0 - 2
tests/datawizard/sync_with_data_with_mem_non_blocking_implicit.c

@@ -23,8 +23,6 @@
 #include <pthread.h>
 #include "../helper.h"
 
-#warning memory leak
-
 #define NBUFFERS_DEF	64
 #define NITER_DEF	128
 #define VECTORSIZE_DEF	1024

+ 0 - 2
tests/main/empty_task_chain.c

@@ -20,8 +20,6 @@
 
 #define N	4
 
-#warning memory leaks
-
 int main(int argc, char **argv)
 {
 	int i, ret;

+ 0 - 2
tests/main/empty_task_sync_point_tasks.c

@@ -18,8 +18,6 @@
 #include <starpu.h>
 #include "../helper.h"
 
-#warning memory leaks
-
 static void dummy_func(void *descr[] __attribute__ ((unused)), void *arg __attribute__ ((unused)))
 {
 }

+ 0 - 2
tests/main/multithreaded_init.c

@@ -22,8 +22,6 @@
 
 #define NUM_THREADS 5
 
-#warning memory leaks
-
 void *launch_starpu(void *id)
 {
 	int ret;