command_queue.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2011 Inria
  4. * Copyright (C) 2012,2017 CNRS
  5. * Copyright (C) 2010-2011,2015 Université de Bordeaux
  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 SOCL_COMMAND_QUEUE_H
  19. #define SOCL_COMMAND_QUEUE_H
  20. void command_queue_enqueue_ex(cl_command_queue cq, /* Command queue */
  21. cl_command cmd, /* Command to enqueue */
  22. cl_uint num_events, /* Number of explicit dependencies */
  23. const cl_event * events /* Explicit dependencies */
  24. );
  25. #define command_queue_enqueue(cq, cmd, num_events, events)\
  26. command_queue_enqueue_ex(cq, (cl_command)cmd, num_events, events)
  27. #endif /* SOCL_COMMAND_QUEUE_H */