6 struct ppcg_debug_options
{
7 int dump_schedule_constraints
;
9 int dump_final_schedule
;
15 struct ppcg_debug_options
*debug
;
20 /* Assume all parameters are non-negative. */
21 int non_negative_parameters
;
27 /* Take advantage of private memory. */
28 int use_private_memory
;
30 /* Take advantage of shared memory. */
31 int use_shared_memory
;
33 /* Maximal amount of shared memory. */
34 int max_shared_memory
;
36 /* The target we generate code for. */
39 /* Generate OpenMP macros (C target only). */
42 /* Linearize all device arrays. */
43 int linearize_device_arrays
;
45 /* Allow live range to be reordered. */
46 int live_range_reordering
;
48 /* Options to pass to the OpenCL compiler. */
49 char *opencl_compiler_options
;
50 /* Prefer GPU device over CPU. */
52 /* Number of files to include. */
53 int opencl_n_include_file
;
54 /* Files to include. */
55 const char **opencl_include_files
;
56 /* Print definitions of types in kernels. */
57 int opencl_print_kernel_types
;
58 /* Embed OpenCL kernel code in host code. */
59 int opencl_embed_kernel_code
;
61 /* Name of file for saving isl computed schedule or NULL. */
62 char *save_schedule_file
;
63 /* Name of file for loading schedule or NULL. */
64 char *load_schedule_file
;
67 ISL_ARG_DECL(ppcg_debug_options
, struct ppcg_debug_options
,
68 ppcg_debug_options_args
)
69 ISL_ARG_DECL(ppcg_options
, struct ppcg_options
, ppcg_options_args
)
71 #define PPCG_TARGET_C 0
72 #define PPCG_TARGET_CUDA 1
73 #define PPCG_TARGET_OPENCL 2