• openpower
  • sv
  • cookbook
  • fortran maxloc
  • Edit
  • RecentChanges
  • Preferences
  • About Us

Fortran MAXLOC SVP64 demo

MAXLOC is a notoriously difficult function for SIMD to cope with. SVP64 however has similar capabilities to Z80 CPIR and LDIR

https://bugs.libre-soc.org/show_bug.cgi?id=676

int m2(int * const restrict a, int n) 
{ 
   int m, nm; 
   int i; 

   m = INT_MIN; 
   nm = -1; 
   for (i=0; i<n; i++) 
   { 
       if (a[i] > m) 
       { 
           m = a[i]; 
           nm = i; 
       } 
    } 
    return nm; 
}

Read: https://www.intel.com/content/www/us/en/developer/articles/technical/optimizing-maxloc-operation-using-avx-512-vector-instructions.html#gs.12t5y0

NLnet foundation logo

Link
Sitemap
Crowdsupply Updates
OpenCollective
Librecores
Libre-SOC Wikipedia
Simple-V OpenPOWER Draft
OpenPOWER External RFCs
PyPI packages
Hackaday
conferences
HDL workflow
Documentation
Bugs and Tasks
All Mailing Lists
List Archives
Git repositories
Kazan (Vulkan driver)
Libre-SOC charter
m class
3D GPU
VPU
Micro-Architecture
future feature proposals
standards
nlnet proposals
resources
Sandbox
Upcoming tasks
NLNet Milestones
180nm Oct2020
22nm PowerPI
Tags: ?svp64 cookbook Last edited Fri Nov 17 14:56:37 2023.