13 #if defined(__PW_FPGA)
28 typedef double2 cmplx;
32 int pw_fpga_initialize_();
35 void pw_fpga_final_();
38 void pw_fpga_fft3d_sp_(
int direction,
int N[3], cmplx *din);
41 void pw_fpga_fft3d_dp_(
int direction,
int N[3], cmplx *din);
44 int pw_fpga_check_bitstream_(
char *data_path,
int N[3]);
47 static cl_platform_id platform = NULL;
48 static cl_device_id *devices;
49 static cl_device_id device = NULL;
50 static cl_context context = NULL;
51 static cl_program program = NULL;
53 static cl_command_queue queue1 = NULL, queue2 = NULL, queue3 = NULL;
54 static cl_command_queue queue4 = NULL, queue5 = NULL, queue6 = NULL;