starpu_config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2017-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #define STARPU_SIMGRID
  17. #define STARPU_MAXIMPLEMENTATIONS 4
  18. #define STARPU_NMAXBUFS 8
  19. #define STARPU_MAXNODES 2
  20. #define STARPU_NMAXWORKERS 16
  21. #ifndef _MSC_VER
  22. #include <stdint.h>
  23. #else
  24. #include <windows.h>
  25. typedef unsigned char uint8_t;
  26. typedef unsigned short uint16_t;
  27. typedef unsigned int uint32_t;
  28. typedef unsigned long long uint64_t;
  29. typedef UINT_PTR uintptr_t;
  30. typedef char int8_t;
  31. typedef short int16_t;
  32. typedef int int32_t;
  33. typedef long long int64_t;
  34. typedef INT_PTR intptr_t;
  35. #endif
  36. #ifdef _MSC_VER
  37. typedef long starpu_ssize_t;
  38. #define __starpu_func__ __FUNCTION__
  39. #else
  40. # include <sys/types.h>
  41. typedef ssize_t starpu_ssize_t;
  42. #define __starpu_func__ __func__
  43. #endif
  44. #if defined(c_plusplus) || defined(__cplusplus)
  45. /* inline is part of C++ */
  46. # define __starpu_inline inline
  47. #elif defined(_MSC_VER) || defined(__HP_cc)
  48. # define __starpu_inline __inline
  49. #else
  50. # define __starpu_inline __inline__
  51. #endif