ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
elpa_new.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HSOLVER_MODULE_GENELPA_ELPA_NEW_H
2#define ABACUS_SOURCE_HSOLVER_MODULE_GENELPA_ELPA_NEW_H
3
4
5#include <elpa/elpa_version.h>
6
7
8
9#if ELPA_API_VERSION >= 20221101
10#include <elpa/elpa.h>
11#else
12extern "C"
13{
14#include <limits.h>
15
16 struct elpa_struct;
17 typedef struct elpa_struct *elpa_t;
18
19 struct elpa_autotune_struct;
20 typedef struct elpa_autotune_struct *elpa_autotune_t;
21
22#include <elpa/elpa_constants.h>
23#include <elpa/elpa_generated_c_api.h>
24// ELPA only provides a C interface header, causing inconsistence of complex
25// between C99 (e.g. double complex) and C++11 (std::complex).
26// Thus, we have to define a wrapper of complex over the c api
27// for compatiability.
28#define complex _Complex
29#include <elpa/elpa_generated.h>
30 // #include <elpa/elpa_generic.h>
31#undef complex
32
33 const char *elpa_strerr(int elpa_error);
34
35// This is a header file related to GPU support.
36// This header file was not available in the early ELPA.
37#if ELPA_API_VERSION >= 20231101
38#include <elpa/elpa_configured_options.h>
39#endif
40}
41
42#include "elpa_generic.h" // This is a wrapper for `elpa/elpa_generic.h`.
43
44#endif
45
46#endif // ABACUS_SOURCE_HSOLVER_MODULE_GENELPA_ELPA_NEW_H
struct elpa_struct * elpa_t
Definition elpa_new.h:17
const char * elpa_strerr(int elpa_error)
struct elpa_autotune_struct * elpa_autotune_t
Definition elpa_new.h:20