#ifndef __GPUWIRE_CU__ #define __GPUWIRE_CU__ #include // Wires are stored in device constant memory for faster // access. This requires the amount of memory to be known // at compile time. MAX_WIRES is used to specified how many // wires space is allocated for. #define MAX_WIRES 6000 struct Wire //Storage will be (Xo, Yo, Zo, X, Y, Z, magnitude) { float x,y,z,i,j,k,L; int id; float3 sdir, tdir, udir, origin; }; __device__ Wire wires_d[MAX_WIRES]; //Wire definition array //__device__ __constant__ Wire wires_d[10]; #endif //__GPUWIRE_CU__