Hi, I know LLVM provides thread-level automatic parallel support using OpenMP (see http://blog.llvm.org/2015/05/openmp-support_22.html), but it is not clear for me which of the following is correct? 1. Clang inserts in the source code OpenMP compiler directives, so, it auto-parallelizes the serial source code provided as input or2. Clang can compile manually written parallel source code that uses OpenMP directives Best regards,Iulia Stirb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151216/f1fc6b98/attachment.html>
----- Original Message -----> From: "Iulia Stirb via llvm-dev" <llvm-dev at lists.llvm.org> > To: llvm-dev at lists.llvm.org > Sent: Wednesday, December 16, 2015 9:28:54 AM > Subject: [llvm-dev] LLVM and parallelization > > Hi, > > > I know LLVM provides t hread-level automatic parallel support using > OpenMP (see http://blog.llvm.org/2015/05/openmp-support_22.html ), > but it is not clear for me which of the following is correct? > > > 1. Clang inserts in the source code OpenMP compiler directives, so, > it auto-parallelizes the serial source code provided as input or > 2. Clang can compile manually written parallel source code that uses > OpenMP directivesThus far, only (2). There is, however, experimental support for (1) in the Polly project. -Hal> > Best regards, > Iulia Stirb > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Hal Finkel Assistant Computational Scientist Leadership Computing Facility Argonne National Laboratory
Hi Hal, Thank you for the answer. I tried to compile using Polly (clang -O3 -mllvm -polly -mllvm -polly-parallel -lgomp) but I get an warning saying polly argument is not used. What do you mean when you say it has experimental support for (1) in the Polly project? Is (1) already implemented in clang and available for users? Regards,Iulia On Wednesday, December 16, 2015 10:42 PM, Hal Finkel <hfinkel at anl.gov> wrote: ----- Original Message -----> From: "Iulia Stirb via llvm-dev" <llvm-dev at lists.llvm.org> > To: llvm-dev at lists.llvm.org > Sent: Wednesday, December 16, 2015 9:28:54 AM > Subject: [llvm-dev] LLVM and parallelization > > Hi, > > > I know LLVM provides t hread-level automatic parallel support using > OpenMP (see http://blog.llvm.org/2015/05/openmp-support_22.html ), > but it is not clear for me which of the following is correct? > > > 1. Clang inserts in the source code OpenMP compiler directives, so, > it auto-parallelizes the serial source code provided as input or > 2. Clang can compile manually written parallel source code that uses > OpenMP directivesThus far, only (2). There is, however, experimental support for (1) in the Polly project. -Hal> > Best regards, > Iulia Stirb > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Hal Finkel Assistant Computational Scientist Leadership Computing Facility Argonne National Laboratory -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160112/5a812eb0/attachment.html>