MADNESS  0.10.1
clapack.h
Go to the documentation of this file.
1 /*
2  This file is part of MADNESS.
3 
4  Copyright (C) 2007,2010 Oak Ridge National Laboratory
5  Copyright (C) 2018 Virginia Tech
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 
21  For more information please contact:
22 
23  Robert J. Harrison
24  Oak Ridge National Laboratory
25  One Bethel Valley Road
26  P.O. Box 2008, MS-6367
27 
28  email: harrisonrj@ornl.gov
29  tel: 865-241-3937
30  fax: 865-572-0680
31 
32 
33  $Id$
34 */
35 
36 
37 #ifndef MADNESS_LINALG_CLAPACK_H__INCLUDED
38 #define MADNESS_LINALG_CLAPACK_H__INCLUDED
39 
40 /// \file clapack.h
41 /// \brief C++ interface to LAPACK, either directly via Fortran API (see clapack_fortran.h) or via LAPACKE (see clapack_lapacke.h)
42 
43 #ifdef MADNESS_LINALG_USE_LAPACKE
44 # if HAVE_INTEL_MKL
45 # if !__has_include(<mkl_lapacke.h>)
46 # error "INTEL MKL detected at configure time, and MADNESS_LINALG_USE_LAPACKE defined, but mkl_lapacke.h not found. Provide -I/path/to/mkl/include to the compiler."
47 # endif
48 # if !__has_include(<mkl_lapack.h>)
49 # error "INTEL MKL detected at configure time, and MADNESS_LINALG_USE_LAPACKE defined, but mkl_lapack.h not found. Provide -I/path/to/mkl/include to the compiler."
50 # endif
51 # include <mkl_lapacke.h>
52 # include <mkl_lapack.h>
53 # else
54 # if !__has_include(<lapacke.h>)
55 # error "MADNESS_LINALG_USE_LAPACKE defined, but lapacke.h not found. Provide -I/path/to/lapacke/dot/h to the compiler."
56 # endif
57 # include <lapacke.h>
58 # endif
60 #else
61 # include "clapack_fortran.h"
62 #endif
63 
64 #endif // MADNESS_LINALG_CLAPACK_H__INCLUDED
Legacy C++ prototypes for Fortran LAPACK with associated typedefs and macos.
Define types used by LAPACKe.