"int64_t" is defined in stdint.h; must use "long" in OpenCL kernels instead
This commit is contained in:
@ -20,9 +20,13 @@
|
||||
#define tagint int
|
||||
#endif
|
||||
#ifdef LAMMPS_BIGBIG
|
||||
#include "inttypes.h"
|
||||
#ifdef USE_OPENCL
|
||||
#define tagint long
|
||||
#else
|
||||
#include "stdint.h"
|
||||
#define tagint int64_t
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LAMMPS_SMALLSMALL
|
||||
#define tagint int
|
||||
#endif
|
||||
@ -39,9 +43,13 @@ _texture( q_tex,int2);
|
||||
#define tagint int
|
||||
#endif
|
||||
#ifdef LAMMPS_BIGBIG
|
||||
#include "inttypes.h"
|
||||
#ifdef USE_OPENCL
|
||||
#define tagint long
|
||||
#else
|
||||
#include "stdint.h"
|
||||
#define tagint int64_t
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LAMMPS_SMALLSMALL
|
||||
#define tagint int
|
||||
#endif
|
||||
|
||||
@ -21,9 +21,13 @@
|
||||
#define tagint int
|
||||
#endif
|
||||
#ifdef LAMMPS_BIGBIG
|
||||
#include "inttypes.h"
|
||||
#ifdef USE_OPENCL
|
||||
#define tagint long
|
||||
#else
|
||||
#include "stdint.h"
|
||||
#define tagint int64_t
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LAMMPS_SMALLSMALL
|
||||
#define tagint int
|
||||
#endif
|
||||
|
||||
@ -136,7 +136,7 @@ typedef int tagint;
|
||||
#define OCL_INT_TYPE "-DLAMMPS_SMALLBIG"
|
||||
#endif
|
||||
#ifdef LAMMPS_BIGBIG
|
||||
#include "inttypes.h"
|
||||
#include "stdint.h"
|
||||
typedef int64_t tagint;
|
||||
#define OCL_INT_TYPE "-DLAMMPS_BIGBIG"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user