starpu_config.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2017 CNRS
  4. * Copyright (C) 2017 Université de Bordeaux
  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. #define STARPU_SIMGRID
  18. #define STARPU_MAXIMPLEMENTATIONS 4
  19. #define STARPU_NMAXBUFS 8
  20. #define STARPU_MAXNODES 2
  21. #define STARPU_NMAXWORKERS 16
  22. #ifndef _MSC_VER
  23. #include <stdint.h>
  24. #else
  25. #include <windows.h>
  26. typedef unsigned char uint8_t;
  27. typedef unsigned short uint16_t;
  28. typedef unsigned int uint32_t;
  29. typedef unsigned long long uint64_t;
  30. typedef UINT_PTR uintptr_t;
  31. typedef char int8_t;
  32. typedef short int16_t;
  33. typedef int int32_t;
  34. typedef long long int64_t;
  35. typedef INT_PTR intptr_t;
  36. #endif
  37. #ifdef _MSC_VER
  38. typedef long starpu_ssize_t;
  39. #define __starpu_func__ __FUNCTION__
  40. #else
  41. # include <sys/types.h>
  42. typedef ssize_t starpu_ssize_t;
  43. #define __starpu_func__ __func__
  44. #endif
  45. #if defined(c_plusplus) || defined(__cplusplus)
  46. /* inline is part of C++ */
  47. # define __starpu_inline inline
  48. #elif defined(_MSC_VER) || defined(__HP_cc)
  49. # define __starpu_inline __inline
  50. #else
  51. # define __starpu_inline __inline__
  52. #endif