Compiling C-Lapack using GNU C++ compiler

Post here if you have a question about the installation process

Compiling C-Lapack using GNU C++ compiler

Postby claashk » Mon Nov 21, 2011 11:40 am

Hello everybody.

While trying to compile LAPACKE/C-Lapack as distributed with LAPACK 3.4.0 under SuSE linux 12.1 using g++-4.6 I encountered a number of problems.

First of all there is a considerable amount of missing definitions in the header files lapacke.h and lapacke_config.h, which prevent the code from compiling due to undefined functions.

Secondly a number of routines fail to compile, because they attempt to modify a constant qualified input matrix. These routines take the input matrix A, transpose it, call the original LAPACK routine and then transpose the output back. The first transpose does not cause any trouble, since it reads from the input and writes its output to a dynamically allocated temporary array. However, the back transformation attempts to read from the temporary array and write on the original input matrix, which is defined const. Since all routines in question calculate norms, they do not produce any matrix output. Thus I circumvented the problem by omitting the second transposition. The files in question are:
- lapacke_slantr_work.c
- lapacke_slansy_work.c
- lapacke_clansy_work.c
- lapacke_dlansy_work.c

Finally there seems to be a substantial amount of missing entries, which do not lead to compile time errors, when comparing the pre-processor macros with the list of actually defined functions. E.g.
- zhetrs2
- zsyconv
- zsytri2
- zsytri2x
- zsyswapr
- zunbdb
- zuncsd
- ...?

are not defined as LAPACKE functions in my copy of version 3.4.0.

I would propose to merge these corrections into the trunk version after review by the developers, if there are no objections. If you like, I can provide the patched files.

Please let me know your thoughts concerning the issue.

Posts: 2
Joined: Mon Nov 21, 2011 7:35 am

Re: Compiling C-Lapack using GNU C++ compiler

Postby admin » Tue Nov 29, 2011 12:12 am

Hello Claas,
Could you please provide a detailed list of problem based not the trunk version of LAPACKE that is at ... nk/lapacke
We may have a problem with the LAPACKE generator.
Thank you for reporting the issue
Site Admin
Posts: 597
Joined: Wed Dec 08, 2004 7:07 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest