Browse Source

include: use tabs instead of spaces

Nathalie Furmento 12 years ago
parent
commit
b76878506b

+ 3 - 3
include/starpu.h

@@ -131,13 +131,13 @@ struct starpu_conf
 	/* Create only one combined worker, containing all CPU workers */
 	int single_combined_worker;
 
-        /* indicate if all asynchronous copies should be disabled */
+	/* indicate if all asynchronous copies should be disabled */
 	int disable_asynchronous_copy;
 
-        /* indicate if asynchronous copies to CUDA devices should be disabled */
+	/* indicate if asynchronous copies to CUDA devices should be disabled */
 	int disable_asynchronous_cuda_copy;
 
-        /* indicate if asynchronous copies to OpenCL devices should be disabled */
+	/* indicate if asynchronous copies to OpenCL devices should be disabled */
 	int disable_asynchronous_opencl_copy;
 
 	/* Enable CUDA/OpenGL interoperation on these CUDA devices */

+ 5 - 5
include/starpu_data_filters.h

@@ -32,11 +32,11 @@ struct starpu_data_interface_ops;
 struct starpu_data_filter
 {
 	void (*filter_func)(void *father_interface, void *child_interface, struct starpu_data_filter *, unsigned id, unsigned nparts);
-        unsigned nchildren;
-        unsigned (*get_nchildren)(struct starpu_data_filter *, starpu_data_handle_t initial_handle);
-        struct starpu_data_interface_ops *(*get_child_ops)(struct starpu_data_filter *, unsigned id);
-        unsigned filter_arg;
-        void *filter_arg_ptr;
+	unsigned nchildren;
+	unsigned (*get_nchildren)(struct starpu_data_filter *, starpu_data_handle_t initial_handle);
+	struct starpu_data_interface_ops *(*get_child_ops)(struct starpu_data_filter *, unsigned id);
+	unsigned filter_arg;
+	void *filter_arg_ptr;
 };
 
 void starpu_data_partition(starpu_data_handle_t initial_handle, struct starpu_data_filter *f);

+ 14 - 14
include/starpu_data_interfaces.h

@@ -79,7 +79,7 @@ struct starpu_data_copy_methods
 
 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
 	/* for asynchronous OpenCL transfers */
-        int (*ram_to_opencl_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cl_event *event);
+	int (*ram_to_opencl_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cl_event *event);
 	int (*opencl_to_ram_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cl_event *event);
 	int (*opencl_to_opencl_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cl_event *event);
 #endif
@@ -133,7 +133,7 @@ struct starpu_data_interface_ops
 	struct starpu_multiformat_data_interface_ops* (*get_mf_ops)(void *data_interface);
 
 	/* Pack the data handle into a contiguous buffer at the address ptr and store the size of the buffer in count */
-        int (*pack_data)(starpu_data_handle_t handle, uint32_t node, void **ptr, size_t *count);
+	int (*pack_data)(starpu_data_handle_t handle, uint32_t node, void **ptr, size_t *count);
 	/* Unpack the data handle from the contiguous buffer at the address ptr */
 	int (*unpack_data)(starpu_data_handle_t handle, uint32_t node, void *ptr, size_t count);
 };
@@ -176,8 +176,8 @@ extern struct starpu_data_interface_ops _starpu_interface_matrix_ops;
 struct starpu_matrix_interface
 {
 	uintptr_t ptr;
-        uintptr_t dev_handle;
-        size_t offset;
+	uintptr_t dev_handle;
+	size_t offset;
 	uint32_t nx;
 	uint32_t ny;
 	uint32_t ld;
@@ -243,8 +243,8 @@ void starpu_coo_data_register(starpu_data_handle_t *handleptr, uint32_t home_nod
 struct starpu_block_interface
 {
 	uintptr_t ptr;
-        uintptr_t dev_handle;
-        size_t offset;
+	uintptr_t dev_handle;
+	size_t offset;
 	uint32_t nx;
 	uint32_t ny;
 	uint32_t nz;
@@ -277,8 +277,8 @@ size_t starpu_block_get_elemsize(starpu_data_handle_t handle);
 struct starpu_vector_interface
 {
 	uintptr_t ptr;
-        uintptr_t dev_handle;
-        size_t offset;
+	uintptr_t dev_handle;
+	size_t offset;
 	uint32_t nx;
 	size_t elemsize;
 };
@@ -330,9 +330,9 @@ struct starpu_csr_interface
 	uint32_t *colind; /* position of non-zero entries on the row */
 	uint32_t *rowptr; /* index (in nzval) of the first entry of the row */
 
-        /* k for k-based indexing (0 or 1 usually) */
-        /* also useful when partitionning the matrix ... */
-        uint32_t firstentry;
+	/* k for k-based indexing (0 or 1 usually) */
+	/* also useful when partitionning the matrix ... */
+	uint32_t firstentry;
 
 	size_t elemsize;
 };
@@ -373,9 +373,9 @@ struct starpu_bcsr_interface
 /*	uint32_t *rowind; */ /* position of non-zero entried on the col */
 	uint32_t *rowptr; /* index (in nzval) of the first entry of the row */
 
-        /* k for k-based indexing (0 or 1 usually) */
-        /* also useful when partitionning the matrix ... */
-        uint32_t firstentry;
+	/* k for k-based indexing (0 or 1 usually) */
+	/* also useful when partitionning the matrix ... */
+	uint32_t firstentry;
 
 	/* size of the blocks */
 	uint32_t r;

+ 2 - 2
include/starpu_opencl.h

@@ -40,7 +40,7 @@ void starpu_opencl_display_error(const char *func, const char *file, int line, c
 static inline void starpu_opencl_report_error(const char *func, const char *file, int line, const char *msg, cl_int status)
 {
 	starpu_opencl_display_error(func, file, line, msg, status);
-        assert(0);
+	assert(0);
 }
 #define STARPU_OPENCL_REPORT_ERROR(status)			\
 	starpu_opencl_report_error(__starpu_func__, __FILE__, __LINE__, NULL, status)
@@ -50,7 +50,7 @@ static inline void starpu_opencl_report_error(const char *func, const char *file
 
 struct starpu_opencl_program
 {
-        cl_program programs[STARPU_MAXOPENCLDEVS];
+	cl_program programs[STARPU_MAXOPENCLDEVS];
 };
 
 size_t starpu_opencl_get_global_mem_size(int devid);

+ 1 - 2
include/starpu_task.h

@@ -140,8 +140,7 @@ struct starpu_task
 
 	/* options for the task execution */
 	unsigned synchronous; /* if set, a call to push is blocking */
-	int priority; /* STARPU_MAX_PRIO = most important
-        		: STARPU_MIN_PRIO = least important */
+	int priority; /* STARPU_MAX_PRIO = most important; STARPU_MIN_PRIO = least important */
 
 	/* in case the task has to be executed on a specific worker */
 	unsigned execute_on_a_specific_worker;