Config.h 1.63 KB
Newer Older
1
2
3
4
5
6
7
/******************************************************************************
 *
 * AMDiS - Adaptive multidimensional simulations
 *
 * Copyright (C) 2013 Dresden University of Technology. All Rights Reserved.
 * Web: https://fusionforge.zih.tu-dresden.de/projects/amdis
 *
8
 * Authors:
9
10
11
12
13
14
15
16
17
 * Simon Vey, Thomas Witkowski, Andreas Naumann, Simon Praetorius, et al.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *
 * This file is part of AMDiS
 *
 * See also license.opensource.txt in the distribution.
18
 *
19
20
21
22
23
24
 ******************************************************************************/



/** \file Config.h */

25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once

/** \brief current AMDiS version */
#ifndef AMDIS_VERSION
#define AMDIS_VERSION  "AMDiS: Version 0.9.1"
#endif

#include <boost/config.hpp>

#define CACHE_LINE 16

#if defined(__clang__)					// Clang/LLVM.
  #include "config/Config_clang.h"
38
39

#elif defined(__ICC) || defined(__INTEL_COMPILER)	// Intel ICC/ICPC.
40
  #include "config/Config_intel.h"
41

42
43
#elif defined(__GNUC__) || defined(__GNUG__)		// GNU GCC/G++.
  #include "config/Config_gcc.h"
44

45
46
#elif defined(__HP_cc) || defined(__HP_aCC)
  error: not supported compiler
47

48
49
#elif defined(__IBMC__) || defined(__IBMCPP__)
  error: not supported compiler
50
51

#elif defined(_MSC_VER)					// Microsoft Visual Studio.
52
  #include "config/Config_msc.h"
53

54
55
#elif defined(__PGI)					// Portland Group PGCC/PGCPP.
  error: not supported compiler
56
//   #include "Config_pgi.h"
57
58
59
60
61

#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  error: not supported compiler
#endif

62
#include "config/Config_defaults.h"