starpu_fpga.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2012, 2014 Université de Bordeaux
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2019 CNRS
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __STARPU_FPGA_H__
  18. #define __STARPU_FPGA_H__
  19. #include <starpu_config.h>
  20. #if defined STARPU_USE_FPGA
  21. //#include <fpga.h>
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. /**
  27. @defgroup API_FPGA_Extensions FPGA Extensions
  28. @{
  29. */
  30. //int starpu_fpga_allocate_memory(fpga_mem *addr, size_t size);
  31. typedef struct data_exchange_log
  32. {
  33. int size;
  34. float time;
  35. } fpga_trans;
  36. typedef struct properties
  37. {
  38. int totalGlobalMem;
  39. int concurrentKernels;
  40. char *name;
  41. } fpgaDeviceProp;
  42. /**
  43. get device properties
  44. */
  45. int fpgaGetDeviceProperties(fpgaDeviceProp *,unsigned devid);
  46. void fpga_report_configuration(void);
  47. int fpgaSetDevice(unsigned devid);
  48. int fpgaSetDevice(unsigned devid);
  49. int fpga_is_silent();
  50. /** @} */
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* STARPU_USE_FPGA */
  55. #endif /* __STARPU_FPGA_H__ */