Hi Jean-Paul,

I can already run my code in the cluster with the lapack and blas module.

Thank you for your time.
Joaquin


2017-03-29 2:52 GMT-04:00 Jean-Paul Pelteret <[email protected]>:

> Hi Joaquin,
>
> Its been a really long time since I compiled Lapack manually and linked it
> against deal.II (at that time, before we used CMake). I've attached for you
> a file with my personal notes on how I used to compile Lapack then (circa
> 2012). I think that you've pretty much covered all of the steps listed
> there, so "point 7" is the one that I think is most useful on this
> occasion. Lapack is built as a static library, and I think (although I
> stand to be corrected) that unless you specifically point CMake/deal.II to
> a static library then, when building a shared library version of deal.II,
> it will expect that the libraries it is to link against are also shared
> libraries.
>
> So what you could do (i.e. what might be easiest right now) is convert the
> static library of Lapack into a shared one. That you built it with the
> -FPIC flag would have ensured that this is possible. If you navigate to the
> lapack library location and run a sensibly modified version of the
> following two lines
>
>> ar -x liblapack.a && gcc -shared *.o -o liblapack.so
>> -L$DIR_BASE/OpenBLAS/build/lib -lopenblas && rm *.o
>> ar -x libtmglib.a && gcc -shared *.o -o libtmglib.so
>> -L$DIR_BASE/OpenBLAS/build/lib -lopenblas && rm *.o
>
> then you should be left with both a static and shared version of these two
> libraries.
>
> You can verify that the libraries were correctly assembled by running
>
>>   ld $DIR_BASE/LAPACK/build/lib/liblapack.so
>>   ld $DIR_BASE/LAPACK/build/lib/libtmglib.so
>
> If there are streams of "undefined reference to", then something's gone
> wrong.
>
> I hope that this finally gets you going.
>
> Best,
> Jean-Paul
>
>
>> After *$ make -j8 install*, the next error I got:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *[100%] Built target obj_fe.releaseLinking CXX shared library
>> ../lib/libdeal_II.so/usr/bin/ld: cannot find -llapackcollect2: error: ld
>> returned 1 exit statusmake[2]: *** [lib/libdeal_II.so.8.4.1] Error
>> 1make[1]: *** [source/CMakeFiles/deal_II.dir/all] Error 2make[1]: ***
>> Waiting for unfinished jobs..../usr/bin/ld: cannot find -llapackcollect2:
>> error: ld returned 1 exit statusmake[2]: *** [lib/libdeal_II.g.so.8.4.1]
>> Error 1make[1]: *** [source/CMakeFiles/deal_II.g.dir/all] Error 2make: ***
>> [all] Error 2*
>>
>> Apparently something else I need to do in the installation.
>>
>> Please help.
>>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/
> forum/dealii?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/dealii/O0GlSdFavp8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Joaquin Valencia
Graduate Student

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to