Florian Hahn via llvm-dev
2020-Sep-01 09:41 UTC
[llvm-dev] Vectorization of math function failed?
Hi,> On Sep 1, 2020, at 10:26, Venkataramanan Kumar via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi Alexandre, > > On Tue, 1 Sep, 2020, 2:21 pm Alexandre Bique, <bique.alexandre at gmail.com <mailto:bique.alexandre at gmail.com>> wrote: > On Tue, Sep 1, 2020 at 9:07 AM Venkataramanan Kumar > <venkataramanan.kumar.llvm at gmail.com <mailto:venkataramanan.kumar.llvm at gmail.com>> wrote: > > Hi Alexandre, > > Hi Venkataramanan, > > > I am not sure if we can generate vector calls to GlibC libmvec. > Is the support for libmvec on the roadmap? If not how to add it? > > I also wanted to check with others here, if we can add support for vector routines in Glibc libmvec. > > Libmvec may not be available in machines which uses lower versions of glibc. We may have to take care of generating calls only when we detect libmvec and also meet required ISA requirements. > > Otherwise is it ok to generate vector calls under a flag?The existing vector library variants are enabled with a flag (`-vector-library`) on the LLVM side as mentioned earlier. I think it would make sense to add support for libmvec in a similar fashion. That should be relatively straight-forward. Cheers, Florian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200901/b6f9035a/attachment.html>
Venkataramanan Kumar via llvm-dev
2020-Sep-01 09:50 UTC
[llvm-dev] Vectorization of math function failed?
Hi Florian, On Tue, 1 Sep, 2020, 3:11 pm Florian Hahn, <florian_hahn at apple.com> wrote:> Hi, > > On Sep 1, 2020, at 10:26, Venkataramanan Kumar via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Hi Alexandre, > > On Tue, 1 Sep, 2020, 2:21 pm Alexandre Bique, <bique.alexandre at gmail.com> > wrote: > >> On Tue, Sep 1, 2020 at 9:07 AM Venkataramanan Kumar >> <venkataramanan.kumar.llvm at gmail.com> wrote: >> > Hi Alexandre, >> >> Hi Venkataramanan, >> >> > I am not sure if we can generate vector calls to GlibC libmvec. >> Is the support for libmvec on the roadmap? If not how to add it? >> > > I also wanted to check with others here, if we can add support for vector > routines in Glibc libmvec. > > Libmvec may not be available in machines which uses lower versions of > glibc. We may have to take care of generating calls only when we detect > libmvec and also meet required ISA requirements. > > Otherwise is it ok to generate vector calls under a flag? > > > The existing vector library variants are enabled with a flag > (`-vector-library`) on the LLVM side as mentioned earlier. I think it would > make sense to add support for libmvec in a similar fashion. That should be > relatively straight-forward. >Oh ok, let me try and prepare a patch. Regards Venkat.> Cheers, > Florian >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200901/840c27f3/attachment.html>
Alexandre Bique via llvm-dev
2020-Sep-01 10:13 UTC
[llvm-dev] Vectorization of math function failed?
On Tue, Sep 1, 2020 at 11:50 AM Venkataramanan Kumar <venkataramanan.kumar.llvm at gmail.com> wrote:> Oh ok, let me try and prepare a patch.Thank you very much! :-) -- Alexandre BIQUE
Alexandre Bique via llvm-dev
2020-Sep-15 12:27 UTC
[llvm-dev] Vectorization of math function failed?
Hi Venkat., Did you make progress with libmvec? Is there a chance that it lands into clang 11? Regards, Alexandre Bique On Tue, Sep 1, 2020 at 11:50 AM Venkataramanan Kumar <venkataramanan.kumar.llvm at gmail.com> wrote:> > Hi Florian, > > On Tue, 1 Sep, 2020, 3:11 pm Florian Hahn, <florian_hahn at apple.com> wrote: >> >> Hi, >> >> On Sep 1, 2020, at 10:26, Venkataramanan Kumar via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi Alexandre, >> >> On Tue, 1 Sep, 2020, 2:21 pm Alexandre Bique, <bique.alexandre at gmail.com> wrote: >>> >>> On Tue, Sep 1, 2020 at 9:07 AM Venkataramanan Kumar >>> <venkataramanan.kumar.llvm at gmail.com> wrote: >>> > Hi Alexandre, >>> >>> Hi Venkataramanan, >>> >>> > I am not sure if we can generate vector calls to GlibC libmvec. >>> Is the support for libmvec on the roadmap? If not how to add it? >> >> >> I also wanted to check with others here, if we can add support for vector routines in Glibc libmvec. >> >> Libmvec may not be available in machines which uses lower versions of glibc. We may have to take care of generating calls only when we detect libmvec and also meet required ISA requirements. >> >> Otherwise is it ok to generate vector calls under a flag? >> >> >> The existing vector library variants are enabled with a flag (`-vector-library`) on the LLVM side as mentioned earlier. I think it would make sense to add support for libmvec in a similar fashion. That should be relatively straight-forward. > > > Oh ok, let me try and prepare a patch. > > Regards > Venkat. > >> >> Cheers, >> Florian