datawizard.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2008-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #ifndef __DATAWIZARD_H__
  17. #define __DATAWIZARD_H__
  18. /** @file */
  19. #include <starpu.h>
  20. #include <common/config.h>
  21. #include <common/utils.h>
  22. #include <datawizard/coherency.h>
  23. #include <datawizard/filters.h>
  24. #include <datawizard/copy_driver.h>
  25. #include <datawizard/footprint.h>
  26. #include <datawizard/data_request.h>
  27. #include <datawizard/interfaces/data_interface.h>
  28. #include <core/dependencies/implicit_data_deps.h>
  29. /** Make data transfers progress on node \p memory_node.
  30. *
  31. * If \p push_requests is 1, it can start new transfers
  32. *
  33. * If \p may_alloc is 1, it can allocate destination data for transfers
  34. * (this is not possible e.g. when spinning for a handle lock)
  35. */
  36. int ___starpu_datawizard_progress(unsigned memory_node, unsigned may_alloc, unsigned push_requests);
  37. /** Call ___starpu_datawizard_progress() for all memory nodes driven by the
  38. * current worker */
  39. int __starpu_datawizard_progress(unsigned may_alloc, unsigned push_requests);
  40. /** Call __starpu_datawizard_progress with push_requests = 1 */
  41. void _starpu_datawizard_progress(unsigned may_alloc);
  42. #endif // __DATAWIZARD_H__