AUTH's THMMY "Parallel and distributed systems" course assignments.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

55 lignes
1.0 KiB

  1. /*!
  2. * \file config.h
  3. * \brief Build configuration file.
  4. *
  5. * \author
  6. * Christos Choutouridis AEM:8997
  7. * <cchoutou@ece.auth.gr>
  8. */
  9. #ifndef CONFIG_H_
  10. #define CONFIG_H_
  11. #include <cstdint>
  12. /*
  13. * Defines for different version of the exercise
  14. */
  15. #define BITONIC (1)
  16. #define BUBBLETONIC (2)
  17. // Fail-safe version selection
  18. #if !defined CODE_VERSION
  19. #define CODE_VERSION BITONIC
  20. #endif
  21. /*!
  22. * Value type selection
  23. *
  24. * We support the following compiler types or the <cstdint> that translate to them:
  25. * char - unsigned char
  26. * short - unsigned short
  27. * int - unsigned int
  28. * long - unsigned long
  29. * long long - unsigned long long
  30. * float
  31. * double
  32. */
  33. using distValue_t = uint32_t;
  34. /*!
  35. * Session option for each invocation of the executable
  36. */
  37. struct session_t {
  38. size_t arraySize{0};
  39. bool ndebug{false};
  40. bool timing{false};
  41. bool verbose{false}; //!< Flag to enable verbose output to stdout
  42. };
  43. extern session_t session;
  44. #endif /* CONFIG_H_ */