#225 Wrong variable names in atlas-mmg.base when too many regs available

Developer
open
None
3
2014-08-29
2014-01-03
No

Dear all,

I was trying to build ATLAS 3.11.17 on a POWER7 system, but it failed to compile
ATL_sgamm0_3x12_nb12.c complaining about redefinition of rC110 and rC111.
indeed, it seems the following code in atlas-mmg.base cannot handle both nu and mu greater than 10 without creating collisions:
{{{
@declare " register ATL_vec_t " y n ";"
@iexp j 0 0 +
@iwhile j < @(nu)
rB@(j)
@iexp i 0 0 +
@iwhile i < @(mu)
rC@(i)@(j)
@iexp i @(i) 1 +
@endiwhile
@iexp j @(j) 1 +
@endiwhile
@iexp i 0 0 +
@iwhile i < @(mu)
rA@(i)
@iexp i @(i) 1 +
@endiwhile
@enddeclare
}}}
I hope this help.

Best,
JP

Discussion

  • Ticket moved from /p/math-atlas/support-requests/931/

     
    • assigned_to: R. Clint Whaley
    • Group: Developer_(v3.11.x) --> Developer
    • Priority: 5 --> 3
     
  • Moved to bugs. I remember thinking about this, and then saying: we are not going to have this problem since largest reg set is 64. However, I think vectorization breaks this, so I need to fix.

     
  • mnormand
    mnormand
    2014-08-29

    problem still alive with atlas 3.11.30 as tracked by https://sourceforge.net/p/math-atlas/bugs/239/ to be closed as dup of this still open #225