A triangle counting assignment for A.U.TH Parallel and distributed systems class.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

42 linhas
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_ */