Page 1 of 1

Clapack makefile

PostPosted: Mon Oct 22, 2012 11:40 pm
by semarf77
Hi guys, need help here:
I intend to use Clapack with my gcc compiler , and have built clapack 3.2.1 cmake source code using cmake, after I’ve done this ( configure until everything turned white ) , the CMakeFiles in the targeted forder are empty. I guess I’ve not successfully installed the clapack packages.Can some assist me how to correctly install Clapack , Thank you.

Re: Clapack makefile

PostPosted: Tue Oct 23, 2012 12:58 am
by admin
Once the configure is good, you have to generate the files.
See here: http://www.cmake.org/cmake/help/runningcmake.html
Hope it helps

Re: Clapack makefile

PostPosted: Tue Oct 23, 2012 2:43 am
by semarf77
Thank you for the prompt reply, I’ve done the generate part, now the CMakefiles in the targeted folder has filled with some files. Is this mean that I’ve successfully installed Clapack? ,I’ve test calling clapack with sample codes from internet, but I still get message from the gcc compiler :
C:\Users\user\AppData\Local\Temp\ccEzjF9H.o:test3.c:(.text+0x162): undefined reference to `dgesvd_'
collect2: ld returned 1 exit status:
Any helpful suggestions on how and where to start with Clapack is very much appreciated. Thanks.

Re: Clapack makefile

PostPosted: Tue Oct 23, 2012 2:40 pm
by admin
Maybe the best, is to go with LAPACKE, way easier to use.
For Unix / Mac: Just download the latests tgz LAPACK package and run cmake (http://netlib.org/lapack/#_lapack_version_3_4_2)
look here if you are under Windows: http://icl.cs.utk.edu/lapack-for-window ... index.html.

With cmake, you have four steps : CONFIGURE / GENERATE / COMPILE / RUN TEST
To compile if you asked for a Makefile configuration: make
To run test: make test

Julie