瀏覽代碼

remove useless functions

Corentin Salingue 8 年之前
父節點
當前提交
196de526b7

+ 0 - 19
src/drivers/mpi/driver_mpi_sink.c

@@ -78,22 +78,3 @@ void _starpu_mpi_sink_bind_thread(const struct _starpu_mp_node *mp_node STARPU_A
 {
     //TODO
 }
-
-
-//void _starpu_mpi_sink_send(const struct _starpu_mp_node *sink, void *msg,
-//			   int len)
-//{
-//	int dst = STARPU_MP_SRC_NODE;
-//	if (MPI_Send(msg, len, MPI_CHAR, dst, dst, MPI_COMM_WORLD))
-//		STARPU_MP_COMMON_REPORT_ERROR(sink, errno);
-//}
-//
-//void _starpu_mpi_sink_recv(const struct _starpu_mp_node *sink, void *msg,
-//			   int len)
-//{
-//	int src = STARPU_MP_SRC_NODE;
-//	if (MPI_Recv(msg, len, MPI_CHAR, src, sink->mp_connection.mpi_nodeid,
-//		     MPI_COMM_WORLD, MPI_STATUS_IGNORE))
-//		STARPU_MP_COMMON_REPORT_ERROR(sink, errno);
-//}
-

+ 0 - 8
src/drivers/mpi/driver_mpi_sink.h

@@ -28,14 +28,6 @@ void _starpu_mpi_sink_launch_workers(struct _starpu_mp_node *node);
 void _starpu_mpi_sink_bind_thread(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, int coreid, int * core_table, int nb_core);
 void (*_starpu_mpi_sink_lookup (const struct _starpu_mp_node * node STARPU_ATTRIBUTE_UNUSED, char* func_name))(void);
 
-///* Send *MSG which can be an answer or data, to MPI SOURCE. */
-//extern void _starpu_mpi_sink_send(const struct _starpu_mp_node *source,
-//				  void *msg, int len);
-//
-///* Receive *MSG which can be either a command or data, from MPI SOURCE. */
-//extern void _starpu_mpi_sink_recv(const struct _starpu_mp_node *source,
-//				  void *msg, int len);
-
 #endif  /* STARPU_USE_MPI_MASTER_SLAVE */
 
 #endif	/* __DRIVER_MPI_SINK_H__ */

+ 0 - 49
src/drivers/mpi/driver_mpi_source.c

@@ -244,52 +244,3 @@ void *_starpu_mpi_src_worker(void *arg)
 
     
 }
-
-
-//void _starpu_mpi_source_send(const struct _starpu_mp_node *node, void *msg,
-//			     int len)
-//{
-//	int dst = node->mp_connection.mpi_nodeid;
-//	if (MPI_Send(msg, len, MPI_CHAR, dst, dst, MPI_COMM_WORLD))
-//		STARPU_MP_COMMON_REPORT_ERROR(node, errno);
-//}
-//
-//void _starpu_mpi_source_recv(const struct _starpu_mp_node *node, void *msg,
-//			     int len)
-//{
-//	int src = node->mp_connection.mpi_nodeid;
-//	if (MPI_Recv(msg, len, MPI_CHAR, src, STARPU_MP_SRC_NODE,
-//		     MPI_COMM_WORLD, MPI_STATUS_IGNORE))
-//		STARPU_MP_COMMON_REPORT_ERROR(node, errno);
-//}
-//
-//int _starpu_mpi_copy_src_to_sink(void *src,
-//				 unsigned src_node STARPU_ATTRIBUTE_UNUSED,
-//				 void *dst, unsigned dst_node, size_t size)
-//{
-//	/* TODO */
-//	return 0;
-//}
-//
-//int _starpu_mpi_copy_sink_to_src(void *src, unsigned src_node, void *dst,
-//				 unsigned dst_node STARPU_ATTRIBUTE_UNUSED,
-//				 size_t size)
-//{
-//	/* TODO */
-//	return 0;
-//}
-//
-//int _starpu_mpi_copy_sink_to_sink(void *src, unsigned src_node, void *dst,
-//				  unsigned dst_node, size_t size)
-//{
-//	/* TODO */
-//	return 0;
-//}
-//
-//void (*_starpu_mpi_get_kernel_from_job(const struct _starpu_mp_node *node,
-//				       struct _starpu_job *j))(void)
-//{
-//	/* TODO */
-//	return NULL;
-//}
-

+ 0 - 29
src/drivers/mpi/driver_mpi_source.h

@@ -36,35 +36,6 @@ void _starpu_mpi_source_deinit(struct _starpu_mp_node *node);
 
 void(* _starpu_mpi_ms_src_get_kernel_from_job(const struct _starpu_mp_node *node STARPU_ATTRIBUTE_UNUSED, struct _starpu_job *j))(void);
 
-///* Send *MSG which can be a command or data, to a MPI sink. */
-//extern void _starpu_mpi_source_send(const struct _starpu_mp_node *node,
-//				    void *msg, int len);
-//
-///* Receive *MSG which can be an answer or data, to a MPI sink. */
-//extern void _starpu_mpi_source_recv(const struct _starpu_mp_node *node,
-//				    void *msg, int len);
-//
-///* Transfert SIZE bytes from the address pointed by SRC in the SRC_NODE memory
-// * node to the address pointed by DST in the DST_NODE memory node */
-//extern int _starpu_mpi_copy_src_to_sink(void *src,
-//					unsigned src_node STARPU_ATTRIBUTE_UNUSED,
-//					void *dst, unsigned dst_node,
-//					size_t size);
-//
-///* Transfert SIZE bytes from the address pointed by SRC in the SRC_NODE memory
-// * node to the address pointed by DST in the DST_NODE memory node */
-//extern int _starpu_mpi_copy_sink_to_src(void *src, unsigned src_node, void *dst,
-//					unsigned dst_node STARPU_ATTRIBUTE_UNUSED,
-//					size_t size);
-//
-//extern int _starpu_mpi_copy_sink_to_sink(void *src, unsigned src_node,
-//					 void *dst, unsigned dst_node,
-//					 size_t size);
-//
-///* Get a pointer which points at the implementation to be called by MPI node. */
-//extern void (*_starpu_mpi_get_kernel_from_job(const struct _starpu_mp_node *,
-//					      struct _starpu_job *j))(void);
-
 #endif /* STARPU_USE_MPI_MASTER_SLAVE */
 
 #endif	/* __DRIVER_MPI_SOURCE_H__ */