1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef MULTIFORMAT_GENERIC_H
- #define MULTIFORMAT_GENERIC_H
- #define NX 16
- #ifdef STARPU_USE_CPU
- void cpu_func(void *buffers[], void *args);
- #endif
- #ifdef STARPU_USE_CUDA
- void cuda_func(void *buffers[], void *args);
- #endif
- #ifdef STARPU_USE_OPENCL
- void opencl_func(void *buffers[], void *args);
- #endif
- extern struct starpu_multiformat_data_interface_ops ops;
- struct stats
- {
- #ifdef STARPU_USE_CPU
- unsigned int cpu;
- #endif
- #ifdef STARPU_USE_CUDA
- unsigned int cuda;
- unsigned int cpu_to_cuda;
- unsigned int cuda_to_cpu;
- #endif
- #ifdef STARPU_USE_OPENCL
- unsigned int opencl;
- unsigned int cpu_to_opencl;
- unsigned int opencl_to_cpu;
- #endif
- };
- void print_stats(struct stats *);
- void reset_stats(struct stats *);
- int compare_stats(struct stats *, struct stats *);
- #endif
|