octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #10020] Improve xpow and bsxfun_pow perfor


From: Shan Kang
Subject: [Octave-patch-tracker] [patch #10020] Improve xpow and bsxfun_pow performance
Date: Tue, 2 Feb 2021 07:47:46 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

URL:
  <https://savannah.gnu.org/patch/?10020>

                 Summary: Improve xpow and bsxfun_pow performance
                 Project: GNU Octave
            Submitted by: kangshan0910
            Submitted on: Tue 02 Feb 2021 12:47:44 PM UTC
                Category: Forge : other
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

1. xpow_optimizaton.patch: it uses https://github.com/intel/VML to improve the
xpow functions for non complex data type. Test shows that the larger the array
size, the more improvement it can get. When array size is 128, the performance
of those updated functions can be increased more than 2 times.

2. bsxfun_pow_optimizaton.patch: it is on the basis of the above patch.
Originally we didn't plan to improve these bsxfun_pow functions. But VML uses
those vectorized math functions from libmvec of which the precision is lower
than libm and this will lead bsxfun.cc-tst to fail. So we implement this
patch. With this patch, when array size is 128, the performance of those
updated functions can be increased more than 20%. The larger the array size,
the more improvement it can get. However, when the array size is less than 16,
the performance will drop ~10%. So if bsxfun.cc-tst's failure is OK, we
recommend the first patch, as it has no side effect.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 02 Feb 2021 12:47:44 PM UTC  Name: xpow_optimizaton.patch  Size:
6KiB   By: kangshan0910

<http://savannah.gnu.org/patch/download.php?file_id=50822>
-------------------------------------------------------
Date: Tue 02 Feb 2021 12:47:44 PM UTC  Name: bsxfun_pow_optimizaton.patch 
Size: 12KiB   By: kangshan0910

<http://savannah.gnu.org/patch/download.php?file_id=50823>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10020>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]