|
@@ -2,7 +2,7 @@
|
|
|
*
|
|
|
* Copyright (C) 2010-2014,2016-2017 CNRS
|
|
|
* Copyright (C) 2012,2017 Inria
|
|
|
- * Copyright (C) 2009-2011,2013-2015,2017 Université de Bordeaux
|
|
|
+ * Copyright (C) 2009-2011,2013-2015,2017-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
|
|
@@ -259,7 +259,7 @@ static const struct starpu_data_copy_methods vector_cpp_copy_data_methods_s =
|
|
|
|
|
|
static void register_vector_cpp_handle(starpu_data_handle_t handle, unsigned home_node, void *data_interface);
|
|
|
static starpu_ssize_t allocate_vector_cpp_buffer_on_node(void *data_interface_, unsigned dst_node);
|
|
|
-static void *vector_cpp_handle_to_pointer(starpu_data_handle_t handle, unsigned node);
|
|
|
+static void *vector_cpp_to_pointer(void *data_interface, unsigned node);
|
|
|
static void free_vector_cpp_buffer_on_node(void *data_interface, unsigned node);
|
|
|
static void free_vector_cpp_buffer_on_node(void *data_interface, unsigned node);
|
|
|
static size_t vector_cpp_interface_get_size(starpu_data_handle_t handle);
|
|
@@ -277,7 +277,7 @@ static struct starpu_data_interface_ops interface_vector_cpp_ops =
|
|
|
.allocate_data_on_node = allocate_vector_cpp_buffer_on_node,
|
|
|
.free_data_on_node = free_vector_cpp_buffer_on_node,
|
|
|
.copy_methods = &vector_cpp_copy_data_methods_s,
|
|
|
- .handle_to_pointer = vector_cpp_handle_to_pointer,
|
|
|
+ .to_pointer = vector_cpp_to_pointer,
|
|
|
.get_size = vector_cpp_interface_get_size,
|
|
|
.footprint = footprint_vector_cpp_interface_crc32,
|
|
|
.compare = vector_cpp_compare,
|
|
@@ -299,7 +299,7 @@ static struct starpu_data_interface_ops interface_vector_cpp_ops =
|
|
|
allocate_vector_cpp_buffer_on_node,
|
|
|
free_vector_cpp_buffer_on_node,
|
|
|
&vector_cpp_copy_data_methods_s,
|
|
|
- vector_cpp_handle_to_pointer,
|
|
|
+ vector_cpp_to_pointer,
|
|
|
vector_cpp_interface_get_size,
|
|
|
footprint_vector_cpp_interface_crc32,
|
|
|
vector_cpp_compare,
|
|
@@ -316,12 +316,10 @@ static struct starpu_data_interface_ops interface_vector_cpp_ops =
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
-static void *vector_cpp_handle_to_pointer(starpu_data_handle_t handle, unsigned node)
|
|
|
+static void *vector_cpp_to_pointer(void *data_interface, unsigned node)
|
|
|
{
|
|
|
- STARPU_ASSERT(starpu_data_test_if_allocated_on_node(handle, node));
|
|
|
-
|
|
|
- struct vector_cpp_interface *vector_interface = (struct vector_cpp_interface *)
|
|
|
- starpu_data_get_interface_on_node(handle, node);
|
|
|
+ (void) node;
|
|
|
+ struct vector_cpp_interface *vector_interface = (struct vector_cpp_interface *) data_interface;
|
|
|
|
|
|
return (void*) vector_interface->ptr;
|
|
|
}
|