Error in ilaenv.c of clapack-3.2.1

Open discussion regarding features, bugs, issues, vendors, etc.

Error in ilaenv.c of clapack-3.2.1

Postby CyLith » Thu Apr 01, 2010 3:02 pm

On line 188 of ilaenv.c, only the first character of the subroutine name is copied, so later on when the name is tested against known sub names, the tests fail and always return a block size of 1. I just doubled checked this in the official clapack-3.2.1-CMAKE.tgz download. However, I just ran a relatively new version of f2c on the vanilla lapack-3.2.1 fortran source and it produces code which copies all 6 characters over.

Edit: Actually, all of the ftnlen parameters for c2, c3, and c4 are wrong. They are all 1 when they should be 2,3,2, respectively.
Posts: 41
Joined: Sun Feb 08, 2009 7:23 am
Location: Stanford, CA

Re: Error in ilaenv.c of clapack-3.2.1

Postby chengiz » Fri Nov 25, 2011 6:21 pm

This entire file has the wrong 3rd arg to s_copy everywhere, and wrong sizes for c2, c3, c4 and subname.
This can be fixed by looking at an earlier version of ilaenv.c.
Further, strlen is being called on unterminated strings (opts) but luckily this can be just removed as it's unused.
(I just ran into this independently so am replying - I think frankly that CLAPACK is dead at this point).
Posts: 5
Joined: Thu Aug 04, 2011 2:09 pm

Re: Error in ilaenv.c of clapack-3.2.1

Postby pjmcclellan » Sat Jun 08, 2013 11:55 am

The third argument passed to s_cmp() is also wrong, causing all the string comparisons to fail.
Posts: 1
Joined: Fri Feb 22, 2013 2:34 pm

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 139 guests