Clapack makefile

Post here if you have problem using the CMAKE build process

Clapack makefile

Postby semarf77 » Mon Oct 22, 2012 11:40 pm

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.
semarf77
 
Posts: 2
Joined: Mon Oct 22, 2012 3:50 am

Re: Clapack makefile

Postby admin » Tue Oct 23, 2012 12:58 am

Once the configure is good, you have to generate the files.
See here: http://www.cmake.org/cmake/help/runningcmake.html
Hope it helps
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm

Re: Clapack makefile

Postby semarf77 » Tue Oct 23, 2012 2:43 am

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.
semarf77
 
Posts: 2
Joined: Mon Oct 22, 2012 3:50 am

Re: Clapack makefile

Postby admin » Tue Oct 23, 2012 2:40 pm

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
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 1 guest

cron