From 5c4963d4b380a7c2b31d4293b5918e46becdd0d1 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 13 Nov 2011 17:25:18 +0100 Subject: [PATCH] update isl for hiding of isl_options Signed-off-by: Sven Verdoolaege --- cuda.c | 3 --- isl | 2 +- ppcg.c | 4 +++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cuda.c b/cuda.c index 2606e88..b3707f6 100644 --- a/cuda.c +++ b/cuda.c @@ -4149,7 +4149,6 @@ static void compute_schedule(struct cuda_gen *gen, isl_union_map *dep_raw, *dep2, *dep3, *dep; isl_union_map *uninitialized; isl_schedule *schedule; - struct isl_options *options; empty = isl_union_map_empty(isl_union_map_get_space(sched)); @@ -4171,8 +4170,6 @@ static void compute_schedule(struct cuda_gen *gen, dep = isl_union_map_coalesce(dep); domain = extract_domain(gen); - options = isl_ctx_peek_options(ctx, &isl_options_args); - options->schedule_outer_zero_distance = 1; schedule = isl_union_set_compute_schedule(isl_union_set_copy(domain), isl_union_map_copy(dep), dep); diff --git a/isl b/isl index c1e5c89..af52e84 160000 --- a/isl +++ b/isl @@ -1 +1 @@ -Subproject commit c1e5c89824b26b40ce10a78c1f61bd1b853ec0f0 +Subproject commit af52e84245fb4bab6734d62da39f63f568371dcd diff --git a/ppcg.c b/ppcg.c index 4a3dd06..e9be656 100644 --- a/ppcg.c +++ b/ppcg.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include "ppcg_options.h" #include "cuda.h" @@ -40,9 +41,10 @@ int main(int argc, char **argv) options = options_new_with_defaults(); assert(options); - argc = options_parse(options, argc, argv, ISL_ARG_ALL); ctx = isl_ctx_alloc_with_options(&options_args, options); + isl_options_set_schedule_outer_zero_distance(ctx, 1); + argc = options_parse(options, argc, argv, ISL_ARG_ALL); scop = pet_scop_extract_from_C_source(ctx, options->input, NULL, 0); r = cuda_pet(ctx, scop, options->ppcg, options->input); -- 2.11.4.GIT