lu_kernels_model.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2009, 2010-2011 Université de Bordeaux
  4. * Copyright (C) 2010 CNRS
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __LU_KERNELS_MODEL_H__
  18. #define __LU_KERNELS_MODEL_H__
  19. #include <starpu.h>
  20. double task_11_cost(struct starpu_task *task, unsigned nimpl);
  21. double task_12_cost(struct starpu_task *task, unsigned nimpl);
  22. double task_21_cost(struct starpu_task *task, unsigned nimpl);
  23. double task_22_cost(struct starpu_task *task, unsigned nimpl);
  24. double task_11_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  25. double task_12_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  26. double task_21_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  27. double task_22_cost_cuda(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  28. double task_11_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  29. double task_12_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  30. double task_21_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  31. double task_22_cost_cpu(struct starpu_task *task, struct starpu_perfmodel_arch* arch, unsigned nimpl);
  32. void initialize_lu_kernels_model(struct starpu_perfmodel* model, char * symbol,
  33. double (*cost_function)(struct starpu_task *, unsigned),
  34. double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned),
  35. double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned));
  36. #endif /* __LU_KERNELS_MODEL_H__ */