Bläddra i källkod

- add description of openmp tests

Olivier Aumage 9 år sedan
förälder
incheckning
49c7a8aecf

+ 5 - 1
tests/openmp/api_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+/*
+ * Check the OpenMP API getters return proper default results.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/array_slice_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Test recursive OpenMP tasks, data dependences, data slice dependences.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/cuda_task_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check executing a CUDA target task.
+ */
+
 #if !defined(STARPU_OPENMP) || !defined(STARPU_USE_CUDA)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/environment.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+/*
+ * Check OpenMP environment variables are properly parsed.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/init_exit_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -18,6 +18,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the starpu_omp_init/shutdown calls.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/init_exit_02.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -18,6 +18,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the starpu_omp_init/shutdown calls when called from constructor/destructor.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP parallel region support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_02.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the nested OpenMP parallel regions support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_03.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check running multiple OpenMP parallel regions one at a time.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_barrier_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP parallel barrier support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_critical_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP critical support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_critical_inline_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the inline OpenMP critical support 
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_critical_named_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP named critical support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_critical_named_inline_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the inline OpenMP named critical support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_for_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP parallel for support, with multiple schedule and chunk settings.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_for_02.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check multiple OpenMP parallel for support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_for_ordered_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP ordered parallel for support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_master_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP master support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_master_inline_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP inline master support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_nested_lock_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP nested lock support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_sections_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP parallel sections support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_sections_combined_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP combined parallel sections support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_simple_lock_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP simple lock support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_single_copyprivate_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP single with copyprivate support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_single_copyprivate_inline_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP inline single with copyprivate support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_single_inline_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP inline single support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_single_nowait_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP single nowait support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/parallel_single_wait_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP single wait support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/task_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP task support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/task_02.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP nested task support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/taskgroup_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP taskgroup support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/taskgroup_02.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP multiple taskgroup support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {

+ 5 - 1
tests/openmp/taskwait_01.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2014  INRIA
+ * Copyright (C) 2014, 2016  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
@@ -19,6 +19,10 @@
 #include "../helper.h"
 #include <stdio.h>
 
+/*
+ * Check the OpenMP taskwait support.
+ */
+
 #if !defined(STARPU_OPENMP)
 int main(int argc, char **argv)
 {