mic_extensions.doxy 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2013,2015,2017 CNRS
  4. * Copyright (C) 2009-2011,2014 Université de Bordeaux
  5. * Copyright (C) 2011-2012 Inria
  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. /*! \defgroup API_MIC_Extensions MIC Extensions
  19. \def STARPU_USE_MIC
  20. \ingroup API_MIC_Extensions
  21. Defined when StarPU has been installed with MIC support.
  22. It should be used in your code to detect the availability of MIC.
  23. \def STARPU_MAXMICDEVS
  24. \ingroup API_MIC_Extensions
  25. Define the maximum number of MIC devices that are supported by StarPU.
  26. \typedef starpu_mic_func_symbol_t
  27. \ingroup API_MIC_Extensions
  28. Type for MIC function symbols
  29. \fn int starpu_mic_register_kernel(starpu_mic_func_symbol_t *symbol, const char *func_name)
  30. \ingroup API_MIC_Extensions
  31. Initiate a lookup on each MIC device to find the address of the
  32. function named \p func_name, store it in the global array kernels
  33. and return the index in the array through \p symbol.
  34. \fn starpu_mic_kernel_t starpu_mic_get_kernel(starpu_mic_func_symbol_t symbol)
  35. \ingroup API_MIC_Extensions
  36. If successfull, return the pointer to the function defined by \p symbol on
  37. the device linked to the called device. This can for instance be used
  38. in a starpu_mic_func_t implementation.
  39. */