starpu_fpga.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 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 && !defined STARPU_DONT_INCLUDE_FPGA_HEADERS
  21. //#include <fpga.h>
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. //int starpu_fpga_allocate_memory(fpga_mem *addr, size_t size);
  27. typedef struct data_exchange_log{
  28. int size;
  29. float time;
  30. } fpga_trans;
  31. typedef struct properties{
  32. int totalGlobalMem;
  33. int concurrentKernels;
  34. char *name;
  35. } fpgaDeviceProp;
  36. int fpgaGetDeviceProperties(fpgaDeviceProp *,unsigned devid);
  37. void fpga_report_configuration(void);
  38. int fpgaSetDevice(unsigned devid);
  39. int fpgaSetDevice(unsigned devid);
  40. int fpga_is_silent();
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif /* STARPU_USE_FPGA && !STARPU_DONT_INCLUDE_FPGA_HEADERS */
  45. #endif /* __STARPU_FPGA_H__ */