<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Mar 14, 2016 at 6:51 PM Jason Henline via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think it would be great if StreamExecutor could use liboffload to perform its offloading under the hood. Right now offloading is handled in StreamExecutor using platform plugins, so I think it could be very natural for us to write a plugin which basically forwards to liboffload.</div></div></blockquote><div><br></div><div>I think that having a liboffload plugin would be nice, but I don't think we should really base everything on top of this for a few reasons:</div><div><br></div><div>1) I think we already have a nice plugin interface specifically designed to support out-of-tree platforms with StreamExecutor, and it wouldn't make a lot of sense to force them to re-implement there stuff.</div><div><br></div><div>2) Some platforms may not want or be able to use the liboffload style plugin.</div><div><br></div><div>It seems like if the OpenMP folks want to add a liboffload plugin to StreamExecutor, that would be an awesome additional platform, but I don't see why we need to force the coupling here.</div><div><br></div><div>My 2 cents.</div><div>-Chandler</div></div></div>