lu_kernels_model.h 2.3 KB

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