mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 05:17:45 -04:00
21 lines
418 B
C
21 lines
418 B
C
#ifndef __MACROS__
|
|
#define __MACROS__
|
|
|
|
#define PI 3.1415926535897932384626433832795029f
|
|
#define PIx2 6.2831853071795864769252867665590058f
|
|
|
|
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
|
|
#define K_ELEMS_PER_GRID 2048
|
|
|
|
#define KERNEL_PHI_MAG_THREADS_PER_BLOCK 256
|
|
#define KERNEL_Q_THREADS_PER_BLOCK 256
|
|
#define KERNEL_Q_K_ELEMS_PER_GRID 1024
|
|
|
|
struct kValues {
|
|
float Kx;
|
|
float Ky;
|
|
float Kz;
|
|
float PhiMag;
|
|
};
|
|
|
|
#endif
|