A triangle counting assignment for A.U.TH Parallel and distributed systems class.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
814 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 verision 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_ */