Open discussion regarding features, bugs, issues, vendors, etc.
We have a researcher who would like to have shared versions of the
BLACS and ScaLAPACK libraries.
It appears that in the case of ScaLAPACK, I can simply build with the
-fPIC option, and then do the following to create a shared library.
ar -x libscalapack.a
gcc -shared -o libscalapack.so *.o
However, that didn't seem to work with BLACS which has files in addition
to .o files in the static library. Do you happen to have the Makefiles
that would provide shared library support for BLACS?
Thanks for your help!
- Posts: 1
- Joined: Mon Feb 15, 2010 1:49 pm
We do not have those.
Indeed BLACS makefile are somewhat challenging, but I believe this should be doable.
- Site Admin
- Posts: 586
- Joined: Wed Dec 08, 2004 7:07 pm
Any progress in that? I have similar problem. When I change the compiling flag to -fpic, my *.a files in BLASC simply do not work. I did not even get to the step of ar -x. My test program in scalapack core dump
[aso:26792] *** Process received signal ***
[aso:26792] Signal: Segmentation fault (11)
[aso:26792] Signal code: Address not mapped (1)
[aso:26792] Failing at address: 0x757400d8
[aso:26792] [ 0] /lib64/libpthread.so.0 [0x32c820eb10]
[aso:26792] [ 1] /import/pdtools/external/openmpi-1.3.4/x86_64/lib/libmpi.so.0(PMPI_Comm_group+0x46) [0x2aad754ed8e6]
[aso:26792] [ 2] xigemr(BI_TransUserComm+0x27) [0x40bee3]
[aso:26792] [ 3] xigemr(Cblacs_gridmap+0x1e4) [0x40888c]
[aso:26792] [ 4] xigemr(Cblacs_gridinit+0x111) [0x408695]
[aso:26792] [ 5] xigemr(main+0xca) [0x40308a]
[aso:26792] [ 6] /lib64/libc.so.6(__libc_start_main+0xf4) [0x32c761d994]
[aso:26792] [ 7] xigemr [0x402cd9]
But it runs fine without the flag -fpic
Any suggestions are appreciated.
- Posts: 1
- Joined: Tue Aug 23, 2011 9:51 pm
Return to User Discussion
Who is online
Users browsing this forum: Ronaldlax and 4 guests