patchGNU Octave - Patches: patch #10020, Improve xpow and bsxfun_pow...

 
 

patch #10020: Improve xpow and bsxfun_pow performance

Submitter:  Shan Kang <kangshan0910>
Submitted:  Tue 02 Feb 2021 12:47:44 PM UTC
   
 
Category:  Forge : other Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Feb 2021 12:47:44 PM UTC, original submission:  

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.

Shan Kang <kangshan0910>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #50822:  xpow_optimizaton.patch added by kangshan0910 (6KiB - application/octet-stream)
file #50823:  bsxfun_pow_optimizaton.patch added by kangshan0910 (12KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kangshan0910 (Submitted the item)
  • -email is unavailable- added by kangshan0910
  • -email is unavailable- added by kangshan0910
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-02 kangshan0910 Attached File- Added xpow_optimizaton.patch, #50822
        Attached File- Added bsxfun_pow_optimizaton.patch, #50823
        Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code