Procházet zdrojové kódy

minor formatting fixes

Nathalie Furmento před 6 roky
rodič
revize
c699e17227

+ 2 - 2
doc/doxygen/chapters/350_scheduling_policy_definition.doxy

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2013                                     Inria
- * Copyright (C) 2014,2016-2018                           CNRS
+ * Copyright (C) 2014,2016-2019                           CNRS
  * Copyright (C) 2014,2017,2019                           Université de Bordeaux
  * Copyright (C) 2013                                     Simon Archipoff
  *
@@ -55,7 +55,7 @@ to make starpu_sched_policy::push_task push the task to a global list, and make
 starpu_sched_policy::pop_task pop from this list. A scheduler can also use
 starpu_push_local_task() to directly push tasks to a per-worker queue, and then
 starpu_does not even need to implement starpu_sched_policy::pop_task.
-If there are no ready tasks within the scheduler, it can just return NULL, and
+If there are no ready tasks within the scheduler, it can just return \c NULL, and
 the worker will sleep.
 
 The \ref starpu_sched_policy section provides the exact rules that govern the

+ 9 - 6
tests/datawizard/scratch_reuse.c

@@ -1,8 +1,8 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2019									 Mirko Myllykoski
- * Copyright (C) 2019									 Université de Bordeaux
- *
+ * Copyright (C) 2019					  Mirko Myllykoski
+ * Copyright (C) 2019					  Université de Bordeaux
+ * Copyright (C) 2019                                     CNRS
  * 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
@@ -37,7 +37,8 @@ static void kernel(void *buffers[], void *cl_args)
 	STARPU_ASSERT(STARPU_MATRIX_GET_PTR(buffers[0]) != 0);
 }
 
-static struct starpu_codelet codelet = {
+static struct starpu_codelet codelet =
+{
 	.name = "codelet",
 	.cuda_funcs = { kernel },
 	.nbuffers = 1,
@@ -52,7 +53,8 @@ int main(int argc, char *argv[])
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
-	if (starpu_cuda_worker_get_count() == 0) {
+	if (starpu_cuda_worker_get_count() == 0)
+	{
 		starpu_shutdown();
 		return STARPU_TEST_SKIPPED;
 	}
@@ -60,7 +62,8 @@ int main(int argc, char *argv[])
 	starpu_data_handle_t handle[ITER];
 
 	int i;
-	for (i = 0; i < ITER; i++) {
+	for (i = 0; i < ITER; i++)
+	{
 		starpu_matrix_data_register(&handle[i], -1, 0, 1024, 1024, 1024, sizeof(float));
 		ret = starpu_task_insert(&codelet, STARPU_SCRATCH, handle[i], 0);
 	}