|
@@ -70,7 +70,6 @@ static void free_csr_buffer_on_node(void *data_interface, uint32_t node);
|
|
static size_t csr_interface_get_size(starpu_data_handle_t handle);
|
|
static size_t csr_interface_get_size(starpu_data_handle_t handle);
|
|
static int csr_compare(void *data_interface_a, void *data_interface_b);
|
|
static int csr_compare(void *data_interface_a, void *data_interface_b);
|
|
static uint32_t footprint_csr_interface_crc32(starpu_data_handle_t handle);
|
|
static uint32_t footprint_csr_interface_crc32(starpu_data_handle_t handle);
|
|
-static void allocate_new_csr(starpu_data_handle_t handle, void **data_interface);
|
|
|
|
|
|
|
|
static struct starpu_data_interface_ops interface_csr_ops =
|
|
static struct starpu_data_interface_ops interface_csr_ops =
|
|
{
|
|
{
|
|
@@ -83,7 +82,6 @@ static struct starpu_data_interface_ops interface_csr_ops =
|
|
.interface_size = sizeof(struct starpu_csr_interface),
|
|
.interface_size = sizeof(struct starpu_csr_interface),
|
|
.footprint = footprint_csr_interface_crc32,
|
|
.footprint = footprint_csr_interface_crc32,
|
|
.compare = csr_compare,
|
|
.compare = csr_compare,
|
|
- .allocate_new_data = allocate_new_csr
|
|
|
|
};
|
|
};
|
|
|
|
|
|
static void register_csr_handle(starpu_data_handle_t handle, uint32_t home_node, void *data_interface)
|
|
static void register_csr_handle(starpu_data_handle_t handle, uint32_t home_node, void *data_interface)
|
|
@@ -415,18 +413,6 @@ static void free_csr_buffer_on_node(void *data_interface, uint32_t node)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-static void allocate_new_csr(starpu_data_handle_t handle, void **data_interface)
|
|
|
|
-{
|
|
|
|
- struct starpu_csr_interface *csr_interface = (struct starpu_csr_interface *)malloc(sizeof(struct starpu_csr_interface));
|
|
|
|
- csr_interface->nnz = starpu_csr_get_nnz(handle);
|
|
|
|
- csr_interface->nrow = starpu_csr_get_nrow(handle);
|
|
|
|
- csr_interface->nzval = starpu_csr_get_local_nzval(handle);
|
|
|
|
- csr_interface->colind = starpu_csr_get_local_colind(handle);
|
|
|
|
- csr_interface->rowptr = starpu_csr_get_local_rowptr(handle);
|
|
|
|
- csr_interface->elemsize = starpu_csr_get_elemsize(handle);
|
|
|
|
- *data_interface = csr_interface;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#ifdef STARPU_USE_CUDA
|
|
#ifdef STARPU_USE_CUDA
|
|
static int copy_cuda_common(void *src_interface, unsigned src_node STARPU_ATTRIBUTE_UNUSED, void *dst_interface, unsigned dst_node STARPU_ATTRIBUTE_UNUSED, enum cudaMemcpyKind kind)
|
|
static int copy_cuda_common(void *src_interface, unsigned src_node STARPU_ATTRIBUTE_UNUSED, void *dst_interface, unsigned dst_node STARPU_ATTRIBUTE_UNUSED, enum cudaMemcpyKind kind)
|
|
{
|
|
{
|