[Openmp-dev] Visual C/C++ OpenMP

Natalia Glagoleva via Openmp-dev openmp-dev at lists.llvm.org
Fri Dec 11 10:40:05 PST 2020


Hello!



Visual C/C++ compiler team in Microsoft (see Cc list) is working on updating our support for OpenMP.

Currently Visual C/C++ compiler supports OpenMP standard 2.0, with some exclusions. We started the work to support the newer standards.

As the first step we took LLVM OpenMP runtime library (libomp) and switched the Visual C/C++ compiler to generate code for OpenMP 2.0 for libomp, currently only for x64. The feature is in 'experimental' (or 'beta') state; should be available in the next release, Visual Studio version 16.9 preview 3, early next year. It'll be available under a separate switch (-openmp:llvm), so people can try it out.

With this update we've fixed a nasty bug for shared variables (was present in Visual C/C++ compiler) and added unsigned induction variables for for loops (was not supported previously). We've also added some initial limited support for tasks; that one is under additional -openmp:experimental switch (not 'beta' quality yet, and only a minimal set of clauses is supported). There will be a more detailed announcement at the time of the release.



As it's beta, we don't have yet full quality assessment. Our internal compiler tests passed, libomp runtime tests show that we don't have a lot of features yet (which is expected), and there are some issues with tasks which we still need to look at. We plan to try https://www.epcc.ed.ac.uk/research/computing/performance-characterisation-and-benchmarking/epcc-openmp-micro-benchmark-suiterun<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.epcc.ed.ac.uk%2Fresearch%2Fcomputing%2Fperformance-characterisation-and-benchmarking%2Fepcc-openmp-micro-benchmark-suiterun&data=04%7C01%7Cnatgla%40microsoft.com%7Ce0c4ff433fb44f6ff03608d89d82e6e7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C637432532828295455%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=54gUxzqjwx%2FgItPs1JGVkcHBymI6m1NqDl6R0pcSTAk%3D&reserved=0> next. I am doing performance measurements now.



We've done several changes to libomp (additional functions), and if the performance will be good, we'd like to upstream the changes.



Natalia Glagoleva, MSVC


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20201211/177b3f19/attachment.html>


More information about the Openmp-dev mailing list