Prechádzať zdrojové kódy

drop including sys/time.h, now useless

Samuel Thibault 10 rokov pred
rodič
commit
0d90ae3f88

+ 0 - 2
tests/experiments/bandwidth_cuda/cuda_bandwidth.c

@@ -31,8 +31,6 @@
 #include <pthread.h>
 #include <assert.h>
 
-#include <sys/time.h>
-
 int GPU_LD	=	2048;
 int CPU_LD	=	2048;
 int MATRIXSIZE	=	1024;

+ 0 - 1
tests/experiments/latency/cuda_latency.c

@@ -19,7 +19,6 @@
 #include <cuda_runtime.h>
 #include <assert.h>
 #include <sys/types.h>
-#include <sys/time.h>
 
 static starpu_pthread_t thread[2];
 static unsigned thread_is_initialized[2];

+ 0 - 1
tests/helper/cublas_init.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 1
tests/loader.c

@@ -16,7 +16,6 @@
 
 #include <common/config.h>
 
-#include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>

+ 0 - 1
tests/main/empty_task.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/empty_task_sync_point.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/get_current_task.c

@@ -16,7 +16,6 @@
  */
 
 #include <config.h>
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <starpu.h>

+ 0 - 1
tests/main/multithreaded.c

@@ -16,7 +16,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/multithreaded_init.c

@@ -14,7 +14,6 @@
  *
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
-#include <sys/time.h>
 #include <stdio.h>
 #include <starpu.h>
 #include "../helper.h"

+ 0 - 1
tests/main/pause_resume.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/regenerate.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <starpu.h>

+ 0 - 1
tests/main/restart.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 1
tests/main/starpu_task_wait.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/starpu_task_wait_for_all.c

@@ -16,7 +16,6 @@
  */
 
 #include <starpu.h>
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include "../helper.h"

+ 0 - 1
tests/main/static_restartable.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/static_restartable_tag.c

@@ -16,7 +16,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/static_restartable_using_initializer.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/main/subgraph_repeat.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <starpu.h>
 #include <common/thread.h>
 

+ 0 - 1
tests/main/subgraph_repeat_regenerate.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <starpu.h>
 #include <common/thread.h>
 

+ 0 - 1
tests/main/subgraph_repeat_regenerate_tag.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <starpu.h>
 #include <common/thread.h>
 

+ 0 - 1
tests/main/subgraph_repeat_tag.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <starpu.h>
 
 #include "../helper.h"

+ 0 - 1
tests/main/submit.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <starpu.h>

+ 0 - 1
tests/main/wait_all_regenerable_tasks.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <starpu.h>

+ 0 - 1
tests/microbenchs/async_tasks_overhead.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <starpu.h>

+ 0 - 1
tests/microbenchs/local_pingpong.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>

+ 0 - 1
tests/microbenchs/matrix_as_vector.c

@@ -16,7 +16,6 @@
 
 #include <starpu.h>
 #include "../helper.h"
-#include <sys/time.h>
 
 #ifdef STARPU_USE_CUDA
 #  include <cublas.h>

+ 0 - 1
tests/microbenchs/sync_tasks_overhead.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/microbenchs/tasks_overhead.c

@@ -15,7 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>
 

+ 0 - 1
tests/microbenchs/tasks_size_overhead.c

@@ -23,7 +23,6 @@
  * Thanks Martin Tillenius for the idea.
  */
 
-#include <sys/time.h>
 #include <stdio.h>
 #include <unistd.h>