Move data from CDEFINES to psb_config.h
parent
2b23f4bdc2
commit
fd90ecb643
@ -1,40 +1,64 @@
|
||||
#ifndef PSB_CONFIG_H
|
||||
#define PSB_CONFIG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <complex>
|
||||
#else
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
#endif
|
||||
|
||||
#define PSB_ERR_ERROR -1
|
||||
#define PSB_ERR_SUCCESS 0
|
||||
|
||||
@CSERIALMPI@
|
||||
|
||||
@IPKDEF@
|
||||
@LPKDEF@
|
||||
|
||||
@CHAVEOPENMP@
|
||||
|
||||
@CHAVEMETIS@
|
||||
@CINTMETIS@
|
||||
@CREALMETIS@
|
||||
|
||||
@CHAVEAMD@
|
||||
|
||||
@CHAVECUDA@
|
||||
@CSHORTVCUDA@
|
||||
@CVERSIONCUDA@
|
||||
|
||||
|
||||
@CHAVELIBRSB@
|
||||
|
||||
typedef int32_t psb_m_t;
|
||||
|
||||
|
||||
typedef int32_t psb_m_t;
|
||||
|
||||
#if defined(IPK4) && defined(LPK4)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int32_t psb_l_t;
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int32_t psb_l_t;
|
||||
#elif defined(IPK4) && defined(LPK8)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#elif defined(IPK8) && defined(LPK8)
|
||||
typedef int64_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
typedef int64_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#else
|
||||
#endif
|
||||
typedef int64_t psb_e_t;
|
||||
typedef int64_t psb_e_t;
|
||||
|
||||
typedef float psb_s_t;
|
||||
typedef double psb_d_t;
|
||||
typedef float complex psb_c_t;
|
||||
typedef double complex psb_z_t;
|
||||
typedef float psb_s_t;
|
||||
typedef double psb_d_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef std::complex<float> psb_c_t;
|
||||
typedef std::complex<double> psb_z_t;
|
||||
#else
|
||||
typedef float complex psb_c_t;
|
||||
typedef float complex psb_z_t;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue