|
@@ -30,18 +30,18 @@
|
|
|
#include <drivers/opencl/driver_opencl.h>
|
|
|
#endif
|
|
|
|
|
|
-static int dummy_copy_ram_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node);
|
|
|
+static int dummy_copy_ram_to_ram(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node);
|
|
|
#ifdef STARPU_USE_CUDA
|
|
|
-static int copy_ram_to_cuda(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node);
|
|
|
-static int copy_cuda_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node);
|
|
|
-static int copy_ram_to_cuda_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cudaStream_t *stream);
|
|
|
-static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cudaStream_t *stream);
|
|
|
+static int copy_ram_to_cuda(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node);
|
|
|
+static int copy_cuda_to_ram(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node);
|
|
|
+static int copy_ram_to_cuda_async(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node, cudaStream_t *stream);
|
|
|
+static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node, cudaStream_t *stream);
|
|
|
#endif
|
|
|
#ifdef STARPU_USE_OPENCL
|
|
|
-static int copy_ram_to_opencl(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node);
|
|
|
-static int copy_opencl_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node);
|
|
|
-static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, void *_event);
|
|
|
-static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, void *_event);
|
|
|
+static int copy_ram_to_opencl(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node);
|
|
|
+static int copy_opencl_to_ram(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node);
|
|
|
+static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node, void *_event);
|
|
|
+static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node, void *_event);
|
|
|
#endif
|
|
|
|
|
|
static const struct starpu_data_copy_methods vector_copy_data_methods_s = {
|
|
@@ -305,7 +305,8 @@ static void free_vector_buffer_on_node(void *interface, uint32_t node)
|
|
|
}
|
|
|
|
|
|
#ifdef STARPU_USE_CUDA
|
|
|
-static int copy_cuda_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node)
|
|
|
+static int copy_cuda_to_ram(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)))
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -322,7 +323,8 @@ static int copy_cuda_to_ram(void *src_interface, unsigned src_node, void *dst_in
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int copy_ram_to_cuda(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node)
|
|
|
+static int copy_ram_to_cuda(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)))
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -339,7 +341,8 @@ static int copy_ram_to_cuda(void *src_interface, unsigned src_node, void *dst_in
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cudaStream_t *stream)
|
|
|
+static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)), cudaStream_t *stream)
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -363,7 +366,8 @@ static int copy_cuda_to_ram_async(void *src_interface, unsigned src_node, void *
|
|
|
return EAGAIN;
|
|
|
}
|
|
|
|
|
|
-static int copy_ram_to_cuda_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cudaStream_t *stream)
|
|
|
+static int copy_ram_to_cuda_async(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)), cudaStream_t *stream)
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -391,7 +395,8 @@ static int copy_ram_to_cuda_async(void *src_interface, unsigned src_node, void *
|
|
|
|
|
|
#endif // STARPU_USE_CUDA
|
|
|
#ifdef STARPU_USE_OPENCL
|
|
|
-static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, void *_event)
|
|
|
+static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)), void *_event)
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -409,7 +414,8 @@ static int copy_ram_to_opencl_async(void *src_interface, unsigned src_node, void
|
|
|
return EAGAIN;
|
|
|
}
|
|
|
|
|
|
-static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, void *_event)
|
|
|
+static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)), void *_event)
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -427,7 +433,8 @@ static int copy_opencl_to_ram_async(void *src_interface, unsigned src_node, void
|
|
|
return EAGAIN;
|
|
|
}
|
|
|
|
|
|
-static int copy_ram_to_opencl(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node)
|
|
|
+static int copy_ram_to_opencl(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)))
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -443,7 +450,8 @@ static int copy_ram_to_opencl(void *src_interface, unsigned src_node, void *dst_
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int copy_opencl_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node)
|
|
|
+static int copy_opencl_to_ram(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)))
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|
|
@@ -461,7 +469,8 @@ static int copy_opencl_to_ram(void *src_interface, unsigned src_node, void *dst_
|
|
|
|
|
|
#endif
|
|
|
|
|
|
-static int dummy_copy_ram_to_ram(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node)
|
|
|
+static int dummy_copy_ram_to_ram(void *src_interface, unsigned src_node __attribute__((unused)),
|
|
|
+ void *dst_interface, unsigned dst_node __attribute__((unused)))
|
|
|
{
|
|
|
starpu_vector_interface_t *src_vector = src_interface;
|
|
|
starpu_vector_interface_t *dst_vector = dst_interface;
|