|
@@ -77,7 +77,6 @@ static void display_block_interface(starpu_data_handle_t handle, FILE *f);
|
|
|
#ifdef STARPU_USE_GORDON
|
|
|
static int convert_block_to_gordon(void *data_interface, uint64_t *ptr, gordon_strideSize_t *ss);
|
|
|
#endif
|
|
|
-static void allocate_new_block(starpu_data_handle_t handle, void **data_interface);
|
|
|
|
|
|
static struct starpu_data_interface_ops interface_block_ops =
|
|
|
{
|
|
@@ -95,7 +94,6 @@ static struct starpu_data_interface_ops interface_block_ops =
|
|
|
.interfaceid = STARPU_BLOCK_INTERFACE_ID,
|
|
|
.interface_size = sizeof(struct starpu_block_interface),
|
|
|
.display = display_block_interface,
|
|
|
- .allocate_new_data = allocate_new_block
|
|
|
};
|
|
|
|
|
|
#ifdef STARPU_USE_GORDON
|
|
@@ -407,21 +405,6 @@ static void free_block_buffer_on_node(void *data_interface, uint32_t node)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static void allocate_new_block(starpu_data_handle_t handle, void **data_interface)
|
|
|
-{
|
|
|
- struct starpu_block_interface *block_interface = (struct starpu_block_interface *)malloc(sizeof(struct starpu_block_interface));
|
|
|
- block_interface->ptr = (uintptr_t) NULL;
|
|
|
- block_interface->dev_handle = (uintptr_t) NULL;
|
|
|
- block_interface->offset = 0;
|
|
|
- block_interface->nx = starpu_block_get_nx(handle);
|
|
|
- block_interface->ny = starpu_block_get_ny(handle);
|
|
|
- block_interface->nz = starpu_block_get_nz(handle);
|
|
|
- block_interface->ldy = starpu_block_get_local_ldy(handle);
|
|
|
- block_interface->ldz = starpu_block_get_local_ldz(handle);
|
|
|
- block_interface->elemsize = starpu_block_get_elemsize(handle);
|
|
|
- *data_interface = block_interface;
|
|
|
-}
|
|
|
-
|
|
|
#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)
|
|
|
{
|