Browse Source

Avoid one-definition-rule warning

Samuel Thibault 4 years ago
parent
commit
8113c15c69

+ 2 - 0
examples/api/bcsr_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the BCSR data
 // interface only uses StarPU's public API
 
+#define starpu_interface_bcsr_ops my_starpu_interface_bcsr_ops
+#define starpu_bcsr_data_register my_starpu_bcsr_data_register
 #include "../../src/datawizard/interfaces/bcsr_interface.c"
 
 int main()

+ 2 - 0
examples/api/block_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the block data
 // interface only uses StarPU's public API
 
+#define starpu_interface_block_ops my_starpu_interface_block_ops
+#define starpu_block_data_register my_starpu_block_data_register
 #include "../../src/datawizard/interfaces/block_interface.c"
 
 int main()

+ 2 - 0
examples/api/coo_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the COO data
 // interface only uses StarPU's public API
 
+#define starpu_interface_coo_ops my_starpu_interface_coo_ops
+#define starpu_coo_data_register my_starpu_coo_data_register
 #include "../../src/datawizard/interfaces/coo_interface.c"
 
 int main()

+ 2 - 0
examples/api/csr_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the CSR data
 // interface only uses StarPU's public API
 
+#define starpu_interface_csr_ops my_starpu_interface_csr_ops
+#define starpu_csr_data_register my_starpu_csr_data_register
 #include "../../src/datawizard/interfaces/csr_interface.c"
 
 int main()

+ 2 - 0
examples/api/matrix_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the matrix data
 // interface only uses StarPU's public API
 
+#define starpu_interface_matrix_ops my_starpu_interface_matrix_ops
+#define starpu_matrix_data_register my_starpu_matrix_data_register
 #include "../../src/datawizard/interfaces/matrix_interface.c"
 
 int main()

+ 2 - 0
examples/api/multiformat_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the multiformat data
 // interface only uses StarPU's public API
 
+#define starpu_interface_multiformat_ops my_starpu_interface_multiformat_ops
+#define starpu_multiformat_data_register my_starpu_multiformat_data_register
 #include "../../src/datawizard/interfaces/multiformat_interface.c"
 
 int main()

+ 2 - 0
examples/api/variable_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the variable data
 // interface only uses StarPU's public API
 
+#define starpu_interface_variable_ops my_starpu_interface_variable_ops
+#define starpu_variable_data_register my_starpu_variable_data_register
 #include "../../src/datawizard/interfaces/variable_interface.c"
 
 int main()

+ 2 - 0
examples/api/vector_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the vector data
 // interface only uses StarPU's public API
 
+#define starpu_interface_vector_ops my_starpu_interface_vector_ops
+#define starpu_vector_data_register my_starpu_vector_data_register
 #include "../../src/datawizard/interfaces/vector_interface.c"
 
 int main()

+ 2 - 0
examples/api/void_data_interface.c

@@ -17,6 +17,8 @@
 // This program checks that the implementation of the void data
 // interface only uses StarPU's public API
 
+#define starpu_interface_void_ops my_starpu_interface_void_ops
+#define starpu_void_data_register my_starpu_void_data_register
 #include "../../src/datawizard/interfaces/void_interface.c"
 
 int main()