<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ok, the following of the discussion takes place there:<div class=""><a href="https://github.com/clang-omp/clang_trunk/pull/27" class="">https://github.com/clang-omp/clang_trunk/pull/27</a></div><div class=""><a href="https://github.com/clang-omp/libomptarget/pull/13" class="">https://github.com/clang-omp/libomptarget/pull/13</a></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Hervé</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 14 oct. 2015 à 20:29, Samuel F Antao <<a href="mailto:sfantao@us.ibm.com" class="">sfantao@us.ibm.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Herve,<div class=""><br class=""></div><div class="">Sounds like an interesting project the one you are working on! </div><div class=""><br class=""></div><div class="">From your description I didn't understand well how you are dealing with the map of pointers. When you say that you have a pointer not generated by clang, what else is generating it? Can you elaborate on that. I think it will also help if you post a small example of what you are trying to accomplish.</div><div class=""><br class=""></div><div class="">I think it will be good to create a pull request in github so we can more easily comment on the code you have. </div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">Samuel</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-10-09 11:44 GMT-04:00 Hervé Yviquel <span dir="ltr" class=""><<a href="mailto:openmp-dev@lists.llvm.org" target="_blank" class="">openmp-dev@lists.llvm.org</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi all,<div class=""><br class=""></div><div class="">Some of my colleagues and I are currently developing the infrastructure for adding a new device, the cloud, to the list of available targets. Considering the cloud as a device requires few changes to the API of the offloading library (libomptarget). Indeed, our cloud device handles offloading data thanks to files instead of values within an address space. To do so, we had to associate each offloaded variables with a unique identifier. Those identifiers are assigned by Clang to each variable, then transmitted to libomptarget as an additional argument of the offloading function "__tgt_target". In case of pointer addresses that are not generated by Clang, the special identifier "-1" is attributed. This allows us to easily skip the offloading of these addresses that our device doesn't use.</div><div class=""><br class=""></div><div class="">You can find attached the patches including the needed modifications both for Clang and libomptarget (based on the repositories of <a href="https://github.com/clang-omp/" target="_blank" class="">https://github.com/clang-omp/</a>). If needed, I can make a push request directly in github.</div><div class=""><br class=""></div><div class="">Let's us precise that we plan to open source all this work and to submit patches to the upstream Clang/OpenMP repositories when it will be mature enough. Additionally to simplify future integrations, those API changes can be helpful for any exotic offloading target. That's why we propose to integrate them directly.</div><div class=""><br class=""></div>Regards,<br class=""><div class=""><div style="word-wrap:break-word" class=""><div class="">--</div><div class="">Hervé Yviquel</div><div class=""><div class="">Postdoc researcher</div><div class=""><div class="">Instituto de Computação (IC) - UNICAMP</div><div class=""><a href="http://people.irisa.fr/Herve.Yviquel/" target="_blank" class="">http://people.irisa.fr/Herve.Yviquel/</a></div><div class=""><br class=""></div><div class=""></div></div></div></div></div></div><br class=""><div style="word-wrap:break-word" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><div class=""><div class=""></div></div></div></div></div></div><br class=""><div style="word-wrap:break-word" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><div class=""><div class=""></div></div></div></div></div></div><br class="">_______________________________________________<br class="">
Openmp-dev mailing list<br class="">
<a href="mailto:Openmp-dev@lists.llvm.org" class="">Openmp-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>