Clp 1.17.5
Loading...
Searching...
No Matches
AbcCommon.hpp
Go to the documentation of this file.
1/* $Id: AbcCommon.hpp 2385 2019-01-06 19:43:06Z unxusr $ */
2// Copyright (C) 2003, International Business Machines
3// Corporation and others, Copyright (C) 2012, FasterCoin. All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5/*
6 Authors
7
8 John Forrest
9
10 */
11#ifndef AbcCommon_H
12#define AbcCommon_H
13
14#include "ClpConfig.h"
15
16/*
17 0 - off
18 1 - build Abc serial but no inherit code
19 2 - build Abc serial and inherit code
20 3 - build Abc cilk parallel but no inherit code
21 4 - build Abc cilk parallel and inherit code
22 */
23#ifdef CLP_HAS_ABC
24#if CLP_HAS_ABC == 1
25#ifndef ABC_PARALLEL
26#define ABC_PARALLEL 0
27#endif
28#ifndef ABC_USE_HOMEGROWN_LAPACK
29#define ABC_USE_HOMEGROWN_LAPACK 2
30#endif
31#elif CLP_HAS_ABC == 2
32#ifndef ABC_PARALLEL
33#define ABC_PARALLEL 0
34#endif
35#ifndef ABC_USE_HOMEGROWN_LAPACK
36#define ABC_USE_HOMEGROWN_LAPACK 2
37#endif
38#ifndef ABC_INHERIT
39#define ABC_INHERIT
40#ifndef CLP_INHERIT_MODE
41#define CLP_INHERIT_MODE 2
42#endif
43#endif
44#elif CLP_HAS_ABC == 3
45#ifndef ABC_PARALLEL
46#define ABC_PARALLEL 2
47#endif
48#ifndef ABC_USE_HOMEGROWN_LAPACK
49#define ABC_USE_HOMEGROWN_LAPACK 2
50#endif
51#elif CLP_HAS_ABC == 4
52#ifndef ABC_PARALLEL
53#define ABC_PARALLEL 2
54#endif
55#ifndef ABC_USE_HOMEGROWN_LAPACK
56#define ABC_USE_HOMEGROWN_LAPACK 2
57#endif
58#ifndef ABC_INHERIT
59#define ABC_INHERIT
60#endif
61#else
62#error "Valid values for CLP_HAS_ABC are 0-4"
63#endif
64#endif
65#endif
66
67/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
68*/