Pārlūkot izejas kodu

add new include starpu_deprecated_api.h to allow users to keep using old typenames

Nathalie Furmento 13 gadi atpakaļ
vecāks
revīzija
4aef4aabc2
3 mainītis faili ar 64 papildinājumiem un 12 dzēšanām
  1. 16 11
      ChangeLog
  2. 2 1
      Makefile.am
  3. 46 0
      include/starpu_deprecated_api.h

+ 16 - 11
ChangeLog

@@ -18,26 +18,31 @@ StarPU 1.0 (svn revision xxxx)
 ==============================================
 The extensions-again release
 
-  * Applications can provide several implementations of a codelet for the same
-  architecture.
-  * A new multi-format interface permits to use different binary formats on
-  CPUs & GPUs, the conversion functions being provided by the application and
-  called by StarPU as needed (and as less as possible).
-  * Add a gcc plugin to extend the C interface with pragmas which allow to
-  easily define codelets and issue tasks.
+  * Applications can provide several implementations of a codelet for
+    the same architecture.
+  * A new multi-format interface permits to use different binary
+    formats on CPUs & GPUs, the conversion functions being provided by
+    the application and called by StarPU as needed (and as less as
+    possible).
+  * Add a gcc plugin to extend the C interface with pragmas which
+    allow to easily define codelets and issue tasks.
   * Add codelet execution time statistics plot.
   * Add bus speed in starpu_machine_display.
   * Add a StarPU-Top feedback and steering interface.
   * Documentation improvement.
-  * Add a STARPU_DATA_ACQUIRE_CB which permits to inline the code to be done.
-  * Permit to specify MPI tags for more efficient starpu_mpi_insert_task
+  * Add a STARPU_DATA_ACQUIRE_CB which permits to inline the code to
+    be done.
+  * Permit to specify MPI tags for more efficient
+    starpu_mpi_insert_task
   * Add a communications.
   * Add SOCL, an OpenCL interface on top of StarPU.
   * Add gdb functions.
   * Add complex support to LU example.
   * Add an OpenMP fork-join example.
-  * Some types were renamed for consistency. The tools/dev/rename.sh script
-  can be used to port code using former names.
+  * Some types were renamed for consistency. The tools/dev/rename.sh
+    script can be used to port code using former names. You can also
+    choose to include starpu_deprecated_api.h (after starpu.h) to keep
+    using the old types.
 
 StarPU 0.9 (svn revision 3721)
 ==============================================

+ 2 - 1
Makefile.am

@@ -61,7 +61,8 @@ include_HEADERS = 				\
 	include/starpu_profiling.h		\
 	include/starpu_bound.h			\
 	include/starpu_scheduler.h		\
-	include/starpu_top.h
+	include/starpu_top.h			\
+	include/starpu_deprecated_api.h
 
 nodist_include_HEADERS = 			\
 	include/starpu_config.h

+ 46 - 0
include/starpu_deprecated_api.h

@@ -0,0 +1,46 @@
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
+ *
+ * Copyright (C) 2010-2011  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.
+ */
+
+#ifndef __STARPU_DEPRECATED_API_H__
+#define _STARPU_DEPRECATED_API_H__
+
+#warning deprecated types. Please update your code to use the latest API.
+
+#define starpu_data_handle		starpu_data_handle_t
+#define starpu_block_interface_t	struct starpu_block_interface
+#define starpu_matrix_interface_t	struct starpu_matrix_interface
+#define starpu_vector_interface_t	struct starpu_vector_interface
+#define starpu_variable_interface_t	struct starpu_variable_interface
+#define starpu_csr_interface_t		struct starpu_csr_interface
+#define starpu_bcsr_interface_t		struct starpu_bcsr_interface
+#define starpu_multiformat_interface_t	struct starpu_multiformat_interface
+#define starpu_machine_topology_s	starpu_machine_topology
+#define starpu_htbl32_node_s		starpu_htbl32_node
+#define starpu_history_list_t		starpu_history_list
+#define starpu_buffer_descr_t		starpu_buffer_descr
+#define starpu_history_entry_t 		starpu_history_entry
+#define starpu_history_list_t		starpu_history_list
+#define starpu_model_list_t		starpu_model_list
+#define starpu_regression_model_t	starpu_regression_model
+#define starpu_per_arch_perfmodel_t	starpu_per_arch_perfmodel
+#define starpu_buffer_descr		struct starpu_buffer_descr
+#define starpu_perfmodel_t		starpu_perfmodel
+#define starpu_sched_policy_s		starpu_sched_policy
+#define starpu_data_interface_ops_t	starpu_data_interface_ops
+
+
+#endif /* _STARPU_DEPRECATED_API_H__ */