소스 검색

tests: add missing copyrights

Nathalie Furmento 12 년 전
부모
커밋
13c9d809a9
3개의 변경된 파일56개의 추가작업 그리고 3개의 파일을 삭제
  1. 19 0
      tests/microbenchs/tasks_size_overhead.gp
  2. 18 0
      tests/microbenchs/tasks_size_overhead.sh
  3. 19 3
      tests/sched_policies/data_locality.c

+ 19 - 0
tests/microbenchs/tasks_size_overhead.gp

@@ -1,4 +1,23 @@
 #!/bin/sh
+
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2009, 2010  Université de Bordeaux 1
+# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+#
+# StarPU is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# StarPU is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+
+
+#!/bin/sh
 OUTPUT=tasks_size_overhead.output
 VALS=$(sed -n -e '3p' < $OUTPUT)
 VAL1=$(echo "$VALS" | cut -d '	' -f 3)

+ 18 - 0
tests/microbenchs/tasks_size_overhead.sh

@@ -1,4 +1,22 @@
 #!/bin/sh
+
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2009, 2010  Université de Bordeaux 1
+# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+#
+# StarPU is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# StarPU is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+
+#!/bin/sh
 ROOT=${0%.sh}
 $ROOT "$@" > tasks_size_overhead.output
 $ROOT.gp

+ 19 - 3
tests/sched_policies/data_locality.c

@@ -1,3 +1,19 @@
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
+ *
+ * Copyright (C) 2012 Inria
+ *
+ * StarPU is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * StarPU is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * See the GNU Lesser General Public License in COPYING.LGPL for more details.
+ */
+
 #include <starpu.h>
 
 #include "../helper.h"
@@ -19,7 +35,7 @@ dummy(void *buffers[], void *args)
 	(void) args;
 }
 
-/* 
+/*
  * Dummy cost function, used to make sure the scheduler does schedule the
  * task, instead of getting rid of it as soon as possible because it doesn't
  * know its expected length.
@@ -78,7 +94,7 @@ run(struct starpu_sched_policy *policy)
 		goto enodev;
 
 	if (starpu_cpu_worker_get_count() == 0 ||
-	    (starpu_cuda_worker_get_count() == 0 && 
+	    (starpu_cuda_worker_get_count() == 0 &&
 	     starpu_opencl_worker_get_count() == 0))
 		goto enodev;
 
@@ -98,7 +114,7 @@ run(struct starpu_sched_policy *policy)
 		goto enodev;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 
-	
+
 	/* Now, run multiple tasks using this handle. */
 	cl.where |= STARPU_CPU;
 	int i;