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.
 
 
 
 
 
 

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