Is this feature on anyone's TODO list? How easy of difficult is it to
implement? A few things.
1. There may not be a good way to provide this feature via the
command-line interface. But if it can be added in the .cloog (the unused
0 0 0 at the end of stmt domain), one won't need a library interface as
well.
2. A user may end up setting these options in a way that may not be
meaningful. For eg., if two statements have fused loops, it doesn't make
sense to ask for that loop depth to be optimized for one statement and
not for the other. But cloog can freely assume to optimize or not
optimize, and this shouldn't be a problem at all.
Overall, it'll be great to have this feature.
-Uday
-Uday
--
You got this message because you subscribed to the CLooG Development mailing list.
To send messages to this list, use cloog-development@googlegroups.com
To stop subscribing, send a mail to cloog-development+unsubscribe@googlegroups.com
For more options and to visit the group, http://groups.google.fr/group/cloog-development?hl=en
<mailto:cloog-development@googlegroups.com>_ To stop subscribing,
send a mail to
<mailto:cloog-development%2Bunsu...@googlegroups.com>_cloog-development+unsubscribe@_googlegroups.com_
<mailto:cloog-development%2Bunsu...@googlegroups.com>_
For more options and to visit the group,<http://groups.google.fr/group/cloog-development?hl=en>__
<http://groups.google.fr/group/cloog-development?hl=en>_http://groups.google.fr/group/_cloog-development?hl=en_
_ _ _ -- This message has been scanned for viruses and dangerouscontent by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean. _
--
You got this message because you subscribed to the CLooG Development mailing list.
To send messages to this list, use cloog-development@googlegroups.com
To stop subscribing, send a mail to cloog-development+unsubscribe@googlegroups.com
Yes, I was uncomfortable about this as well. Since we don't know the number of statements in CloogOptions, the best solution I could find was to allow the user to allocate and deallocate them. So, cloog_options_free will do nothing about fs/ls.
- I have a mixed feeling about the fact that the size of the ls and
fs arrays is not known in the CloogOption structure, this gives me
the impression that it is not self-contained, but it's much probably
not a problem (if it becomes a problem we may introduce, e.g., a
"final" flag as the last element of each array).
-Uday
<mailto:cloog-development%__2Bunsu...@googlegroups.com<mailto:cloog-development%252Bunsubscribe@googlegroups.com>__>_
<mailto:cloog-development%252Bunsubscribe@googlegroups.com>__>_cloog-development+__unsubscribe@_googlegroups.com_
<mailto:cloog-development%__2Bunsu...@googlegroups.com
For more options and to visit the group,
<http://groups.google.fr/__group/cloog-development?hl=en
<http://groups.google.fr/group/cloog-development?hl=en>>____
_ _ _ -- This message has been scanned for viruses and dangerouscontent by *MailScanner* <http://www.mailscanner.info/>__, and iscloog-development@__googlegroups.com
believed to be clean. _
-- You got this message because you subscribed to the CLooG
Development mailing list. To send messages to this list, use
<mailto:cloog-development@googlegroups.com> To stop subscribing, send
a mail to cloog-development+unsubscribe@__googlegroups.com
<mailto:cloog-development%2Bunsu...@googlegroups.com> For morehttp://groups.google.fr/group/__cloog-development?hl=en
options and to visit the group,
<http://groups.google.fr/group/cloog-development?hl=en>
-- This message has been scanned for viruses and dangerous content by
*MailScanner* <http://www.mailscanner.info/>, and is believed to be
clean.
dangerous content by MailScanner, and is
--
This message has been scanned for viruses and
believed to be clean.
--
You got this message because you subscribed to the CLooG Development mailing list.
To send messages to this list, use cloog-development@googlegroups.com
To stop subscribing, send a mail to cloog-development+unsubscribe@googlegroups.com
For more options and to visit the group, http://groups.google.fr/group/cloog-development?hl=en
On Fri, Jun 1, 2012 at 2:59 PM, Cédric Bastoul <cedric....@u-psud.fr> wrote:
On Fri, Jun 1, 2012 at 11:12 AM, Uday K Bondhugula <ud...@csa.iisc.ernet.in> wrote:
Yes, I was uncomfortable about this as well. Since we don't know the number of statements in CloogOptions, the best solution I could find was to allow the user to allocate and deallocate them. So, cloog_options_free will do nothing about fs/ls.
- I have a mixed feeling about the fact that the size of the ls and
fs arrays is not known in the CloogOption structure, this gives me
the impression that it is not self-contained, but it's much probably
not a problem (if it becomes a problem we may introduce, e.g., a
"final" flag as the last element of each array).
I think there is no problem for cloog_option_malloc and cloog_option_free. Whatever the size is, according to how CLooG "objects" work, cloog_option_malloc has to set the fs/ls pointers to NULL and free has to free them (free(ls); free(fs); will do it), so I prefer not to introduce an inconsistency here. I'm more concerned by cloog_option_print which cannot dump the content of the structure, but just mention the arrays are set. I see two solutions: we could #define a final marker to put at the last element of the array (#define CLOOG_FINAL -2 for instance), or set a ls_size and a lf_size fields in CloogOptions (verbose but pretty clean).
Having a size looks much better, but both have to be of the same size. How about fs_ls_size?
-Uday
To send messages to this list, use cloog-de...@googlegroups.com
To stop subscribing, send a mail to cloog-developm...@googlegroups.com