|
@@ -1,7 +1,7 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
* Copyright (C) 2009-2012 Université de Bordeaux 1
|
|
|
- * Copyright (C) 2010, 2012 Centre National de la Recherche Scientifique
|
|
|
+ * Copyright (C) 2010, 2012, 2013 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
|
|
@@ -21,6 +21,21 @@
|
|
|
#include <starpu.h>
|
|
|
#include <common/config.h>
|
|
|
|
|
|
+/* Generic type representing an interface, for now it's only used before
|
|
|
+ * execution on message-passing devices but it can be useful in other cases.
|
|
|
+ */
|
|
|
+union _starpu_interface
|
|
|
+{
|
|
|
+ struct starpu_matrix_interface matrix;
|
|
|
+ struct starpu_block_interface block;
|
|
|
+ struct starpu_vector_interface vector;
|
|
|
+ struct starpu_csr_interface csr;
|
|
|
+ struct starpu_coo_interface coo;
|
|
|
+ struct starpu_bcsr_interface bcsr;
|
|
|
+ struct starpu_variable_interface variable;
|
|
|
+ struct starpu_multiformat_interface multiformat;
|
|
|
+};
|
|
|
+
|
|
|
/* Some data interfaces or filters use this interface internally */
|
|
|
extern struct starpu_data_interface_ops starpu_interface_matrix_ops;
|
|
|
extern struct starpu_data_interface_ops starpu_interface_block_ops;
|