add --assume-non-negative-parameters option
[ppcg.git] / ppcg_options.h
blobe34a31cf7d51190992dde51e5661bca74dfa93cf
1 #ifndef PPCG_OPTIONS_H
2 #define PPCG_OPTIONS_H
4 #include <isl/arg.h>
6 struct ppcg_debug_options {
7 int dump_schedule_constraints;
8 int dump_schedule;
9 int dump_final_schedule;
10 int dump_sizes;
11 int verbose;
14 struct ppcg_options {
15 struct ppcg_debug_options *debug;
17 int scale_tile_loops;
18 int wrap;
20 /* Assume all parameters are non-negative. */
21 int non_negative_parameters;
22 char *ctx;
23 char *sizes;
25 int tile_size;
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. */
37 int target;
39 /* Generate OpenMP macros (C target only). */
40 int openmp;
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. */
51 int opencl_use_gpu;
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
75 #endif