[Openmp-dev] Offloading API

Hervé Yviquel via Openmp-dev openmp-dev at lists.llvm.org
Thu Oct 15 07:14:20 PDT 2015


Ok, the following of the discussion takes place there:
https://github.com/clang-omp/clang_trunk/pull/27 <https://github.com/clang-omp/clang_trunk/pull/27>
https://github.com/clang-omp/libomptarget/pull/13 <https://github.com/clang-omp/libomptarget/pull/13>

Regards,
Hervé

> Le 14 oct. 2015 à 20:29, Samuel F Antao <sfantao at us.ibm.com> a écrit :
> 
> Hi Herve,
> 
> Sounds like an interesting project the one you are working on! 
> 
> 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.
> 
> I think it will be good to create a pull request in github so we can more easily comment on the code you have. 
> 
> Thanks!
> Samuel
> 
> 
> 2015-10-09 11:44 GMT-04:00 Hervé Yviquel <openmp-dev at lists.llvm.org <mailto:openmp-dev at lists.llvm.org>>:
> Hi all,
> 
> 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.
> 
> You can find attached the patches including the needed modifications both for Clang and libomptarget (based on the repositories of https://github.com/clang-omp/ <https://github.com/clang-omp/>). If needed, I can make a push request directly in github.
> 
> 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.
> 
> Regards,
> --
> Hervé Yviquel
> Postdoc researcher
> Instituto de Computação (IC) - UNICAMP
> http://people.irisa.fr/Herve.Yviquel/ <http://people.irisa.fr/Herve.Yviquel/>
> 
> 
> 
> 
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org <mailto:Openmp-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20151015/213973d0/attachment.html>


More information about the Openmp-dev mailing list