A triangle counting assignment for A.U.TH Parallel and distributed systems class.
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.
 
 
 
 
 
 

43 lignes
813 B

  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 <v12.h>
  12. #include <v3.h>
  13. #include <v4.h>
  14. #include <elearn.h>
  15. /*
  16. * Defines for different version of the exercise
  17. */
  18. #define V12 2
  19. #define V3 3
  20. #define V4 4
  21. // Fail-safe version selection
  22. #if !defined CODE_VERSION
  23. #define CODE_VERSION V4
  24. #endif
  25. // matrix alias template dispatcher based on pre-define flag from compiler (see Makefile)
  26. #if CODE_VERSION == V12
  27. using namespace v12;
  28. using matrix = v12::matrix;
  29. #elif CODE_VERSION == V3
  30. using namespace v3;
  31. using matrix = v3::matrix;
  32. #elif CODE_VERSION == V4
  33. using namespace v4;
  34. using matrix = v4::matrix;
  35. #endif
  36. #endif /* CONFIG_H_ */