mic_extensions.doxy 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2017 CNRS
  5. * Copyright (C) 2011, 2012 INRIA
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \defgroup API_MIC_Extensions MIC Extensions
  9. \def STARPU_USE_MIC
  10. \ingroup API_MIC_Extensions
  11. Defined when StarPU has been installed with MIC support.
  12. It should be used in your code to detect the availability of MIC.
  13. \def STARPU_MAXMICDEVS
  14. \ingroup API_MIC_Extensions
  15. Define the maximum number of MIC devices that are supported by StarPU.
  16. \typedef starpu_mic_func_symbol_t
  17. \ingroup API_MIC_Extensions
  18. Type for MIC function symbols
  19. \fn int starpu_mic_register_kernel(starpu_mic_func_symbol_t *symbol, const char *func_name)
  20. \ingroup API_MIC_Extensions
  21. Initiate a lookup on each MIC device to find the address of the
  22. function named \p func_name, store it in the global array kernels
  23. and return the index in the array through \p symbol.
  24. \fn starpu_mic_kernel_t starpu_mic_get_kernel(starpu_mic_func_symbol_t symbol)
  25. \ingroup API_MIC_Extensions
  26. If successfull, return the pointer to the function defined by \p symbol on
  27. the device linked to the called device. This can for instance be used
  28. in a starpu_mic_func_t implementation.
  29. */