Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-23 Thread Jerry Feldman
On 05/23/2010 07:20 AM, Jerry Feldman wrote: > On 05/22/2010 12:22 PM, Bruce Labitt wrote: > >> Because in C the array (matrix) does not have >> to be contiguous in memory. >> > This can be true. First, a struct must be aligned on a natural boundary, > which is usually a 64-bit boundary.

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-23 Thread Jerry Feldman
On 05/22/2010 12:22 PM, Bruce Labitt wrote: > Because in C the array (matrix) does not have > to be contiguous in memory. This can be true. First, a struct must be aligned on a natural boundary, which is usually a 64-bit boundary. In your case doublecomplex. Since doubles are also 64-bit the doub

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-22 Thread Kevin D. Clark
Bruce Labitt writes: > Well, I have something to try... If one actually RTFM or in this case > the readme, one finds the following: > > # As a final point, we must stress that there is a difference in the > definition > # of a two-dimensional array in Fortran and C. The difference that you c

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-22 Thread Bruce Labitt
snip > Not too much to report. I even re-compiled ATLAS & LAPACK allowing gcc > & gfortran and got my example code to build. Same problem with the 9x9 > matrix. The 2x2 double complex matrix svd worked! > > I do have to say the interface to LAPACK is much better than CLAPACK. > (C or C++ ca

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-21 Thread Bruce Labitt
bruce.lab...@autoliv.com wrote: > gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 02:34:19 PM: > > >> Comment on my own post. Probably nothing is wrong with MY CODE. >> >> http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=745 >> >> The claim is that zgesvd_ function hangs. Th

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-20 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 02:34:19 PM: > > Comment on my own post. Probably nothing is wrong with MY CODE. > > http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=745 > > The claim is that zgesvd_ function hangs. The fix is allegedly to modify > the make.

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Kevin D. Clark
Jerry Feldman writes: > Several years ago, someone at a BLU meeting mentioned he was having a > problem with some code in a phone switch, and his company and Verizon > were pointing fingers, especially because a previous problem was theirs. > He tried a number of different solutions, and after tr

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Jerry Feldman
On 05/19/2010 04:03 PM, Kevin D. Clark wrote: > Jerry Feldman writes: > > >> On 05/19/2010 03:22 PM, Bruce Labitt wrote: >> >>> Is there an equivalent tool for the stack? >>> >> Purify. Purify is a commercial product (expensive too) that instruments >> every load and store operation

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Kevin D. Clark
Jerry Feldman writes: > On 05/19/2010 03:22 PM, Bruce Labitt wrote: > > > > Is there an equivalent tool for the stack? > > Purify. Purify is a commercial product (expensive too) that instruments > every load and store operation whether that be on the heap or the stack. > While valgrind is a great

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Kevin D. Clark
[please don't top-post] Bruce Labitt writes: > Is there an equivalent tool for the stack? I don't know of a reliable one. --kevin -- alumni.unh.edu!kdc / http://kdc-blog.blogspot.com/ GnuPG: D87F DAD6 0291 289C EB1E 781C 9BF8 A7D8 B280 F24E Wipe him down with gasoline 'til his arms are ha

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Jerry Feldman
On 05/19/2010 03:22 PM, Bruce Labitt wrote: > > Is there an equivalent tool for the stack? > > Purify. Purify is a commercial product (expensive too) that instruments every load and store operation whether that be on the heap or the stack. While valgrind is a great tool, it does not compare to Puri

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Jerry Feldman
On 05/19/2010 02:34 PM, bruce.lab...@autoliv.com wrote: > gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 01:36:03 PM: > > >> gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 09:19:37 AM: >> >>> On 05/18/2010 08:13 PM, Bruce Labitt wrote: >>> As the subject

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Bruce Labitt
Is there an equivalent tool for the stack? On May 19, 2010 3:18 PM, "Kevin D. Clark" wrote: Bruce Labitt writes: > If anyone has a few spare moments, I'd appreciate a quick look and any > h... All of your code allocates space for your matrix arrays on the stack. There is nothing wrong with thi

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Kevin D. Clark
Bruce Labitt writes: > If anyone has a few spare moments, I'd appreciate a quick look and any > helpful comments you may have. FWIW, I used valgrind and saw that even > when I got the correct answer, there were tons of warnings and errors > reported. (These errors were DEEP inside of the CLA

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 01:36:03 PM: > gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 09:19:37 AM: > > On 05/18/2010 08:13 PM, Bruce Labitt wrote: > > > As the subject line indicates - a total shot in the dark... > > > > > > Prototyping Platform: Ubun

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Jerry Feldman
On 05/19/2010 01:36 PM, bruce.lab...@autoliv.com wrote: > gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 09:19:37 AM: > >> On 05/18/2010 08:13 PM, Bruce Labitt wrote: >> >>> As the subject line indicates - a total shot in the dark... >>> >>> Prototyping Platform: Ubuntu 10.04 x8

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread bruce . labitt
gnhlug-discuss-boun...@mail.gnhlug.org wrote on 05/19/2010 09:19:37 AM: > On 05/18/2010 08:13 PM, Bruce Labitt wrote: > > As the subject line indicates - a total shot in the dark... > > > > Prototyping Platform: Ubuntu 10.04 x86-64 > > Libraries: BLAS from ATLAS, CLAPACK > > > > I'm trying to use s

Re: Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-19 Thread Jerry Feldman
I've used CLAPACK, but as an underlying library for other things. My company uses CLAPACK 3.0 in our product and I am unaware of any issues. We do complex things like Stochastic systems. In addition about 99% of our code is pure C++ with a very small amount of C Flex and Bison. Additionally, the Py

Shot in the dark: Anyone ever use CLAPACK routines?

2010-05-18 Thread Bruce Labitt
As the subject line indicates - a total shot in the dark... Prototyping Platform: Ubuntu 10.04 x86-64 Libraries: BLAS from ATLAS, CLAPACK I'm trying to use some CLAPACK routines to perform matrix manipulation, in particular, the zgesvd routine to do a singular value decomposition (SVD). My cod