6 struct ppcg_debug_options
{
7 int dump_schedule_constraints
;
9 int dump_final_schedule
;
15 struct ppcg_debug_options
*debug
;
17 /* Use isl to compute a schedule replacing the original schedule. */
22 /* Assume all parameters are non-negative. */
23 int non_negative_parameters
;
29 /* Take advantage of private memory. */
30 int use_private_memory
;
32 /* Take advantage of shared memory. */
33 int use_shared_memory
;
35 /* Maximal amount of shared memory. */
36 int max_shared_memory
;
38 /* The target we generate code for. */
41 /* Generate OpenMP macros (C target only). */
44 /* Linearize all device arrays. */
45 int linearize_device_arrays
;
47 /* Allow live range to be reordered. */
48 int live_range_reordering
;
50 /* Options to pass to the OpenCL compiler. */
51 char *opencl_compiler_options
;
52 /* Prefer GPU device over CPU. */
54 /* Number of files to include. */
55 int opencl_n_include_file
;
56 /* Files to include. */
57 const char **opencl_include_files
;
58 /* Print definitions of types in kernels. */
59 int opencl_print_kernel_types
;
60 /* Embed OpenCL kernel code in host code. */
61 int opencl_embed_kernel_code
;
63 /* Name of file for saving isl computed schedule or NULL. */
64 char *save_schedule_file
;
65 /* Name of file for loading schedule or NULL. */
66 char *load_schedule_file
;
69 ISL_ARG_DECL(ppcg_debug_options
, struct ppcg_debug_options
,
70 ppcg_debug_options_args
)
71 ISL_ARG_DECL(ppcg_options
, struct ppcg_options
, ppcg_options_args
)
73 #define PPCG_TARGET_C 0
74 #define PPCG_TARGET_CUDA 1
75 #define PPCG_TARGET_OPENCL 2