瀏覽代碼

Avoid exposing non-STARPU_-prefixed symbols

(cherry picked from commit 854005aee924e7d50dad240f8b28bb617e0395ba)
Samuel Thibault 7 年之前
父節點
當前提交
8dd0f7f5e1

+ 2 - 2
doc/doxygen/chapters/490_clustering_a_machine.doxy

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2015-2017                                CNRS
  * Copyright (C) 2015-2016                                Inria
- * Copyright (C) 2015                                     Université de Bordeaux
+ * Copyright (C) 2015, 2018                                     Université de Bordeaux
  *
  * 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
@@ -151,7 +151,7 @@ Here are two examples:
 \code{.c}
 struct starpu_cluster_machine *clusters;
 clusters = starpu_cluster_machine(HWLOC_OBJ_SOCKET,
-                                 STARPU_CLUSTER_TYPE, GNU_OPENMP_MKL,
+                                 STARPU_CLUSTER_TYPE, STARPU_CLUSTER_GNU_OPENMP_MKL,
                                  0);
 \endcode
 

+ 4 - 4
include/starpu_clusters_util.h

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2015,2017                                CNRS
  * Copyright (C) 2015,2017                                Inria
- * Copyright (C) 2015                                     Université de Bordeaux
+ * Copyright (C) 2015, 2018                                     Université de Bordeaux
  *
  * 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
@@ -47,10 +47,10 @@ extern "C"
  * use by the sub-runtime */
 typedef enum
 {
-		OPENMP,
-		INTEL_OPENMP_MKL,
+		STARPU_CLUSTER_OPENMP,
+		STARPU_CLUSTER_INTEL_OPENMP_MKL,
 #ifdef STARPU_MKL
-		GNU_OPENMP_MKL,
+		STARPU_CLUSTER_GNU_OPENMP_MKL,
 #endif
 } starpu_cluster_types;
 

+ 5 - 5
src/util/starpu_clusters_create.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2015-2018                                CNRS
  * Copyright (C) 2015-2017                                Inria
- * Copyright (C) 2015-2016                                Université de Bordeaux
+ * Copyright (C) 2015-2016, 2018                                Université de Bordeaux
  *
  * 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
@@ -27,14 +27,14 @@ starpu_binding_function _starpu_cluster_type_get_func(starpu_cluster_types type)
 
 	switch (type)
 	{
-	case OPENMP:
+	case STARPU_CLUSTER_OPENMP:
 		prologue_func = &starpu_openmp_prologue;
 		break;
-	case INTEL_OPENMP_MKL:
+	case STARPU_CLUSTER_INTEL_OPENMP_MKL:
 		prologue_func = &starpu_intel_openmp_mkl_prologue;
 		break;
 #ifdef STARPU_MKL
-	case GNU_OPENMP_MKL:
+	case STARPU_CLUSTER_GNU_OPENMP_MKL:
 		prologue_func = &starpu_gnu_openmp_mkl_prologue;
 		break;
 #endif
@@ -445,7 +445,7 @@ void _starpu_cluster_init_parameters(struct _starpu_cluster_parameters *params)
 	params->prefere_min = 0;
 	params->create_func = NULL;
 	params->create_func_arg = NULL;
-	params->type = OPENMP;
+	params->type = STARPU_CLUSTER_OPENMP;
 	params->awake_workers = 0;
 
 	return;