The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

problems with pre built version from AMD

Open discussion regarding features, bugs, issues, vendors, etc.

problems with pre built version from AMD

Postby gortiz » Wed Feb 27, 2008 4:17 pm

Probably this question is out from this forum.
But I'm traying to compile scalapack in Sun Fire X2200
cluster with AMD procesors of 64 bit and using Suse 10.X

Then, I have downloaded ACML libraries and this link libs
and pass test OK, but AMD extension for scalapack not

I obtain errors like
type_free.c:(.text+0x1a7): undefined reference to `pthread_getspecific'
and some other related to like something were lost

I appreciate very much if somebody could help me

thanks a lot,

g.
gortiz
 
Posts: 29
Joined: Fri Aug 17, 2007 8:23 pm
Location: Corrientes, Arg.

Re: problems with pre built version from AMD

Postby buttari » Thu Feb 28, 2008 6:56 am

gortiz wrote:Probably this question is out from this forum.
But I'm traying to compile scalapack in Sun Fire X2200
cluster with AMD procesors of 64 bit and using Suse 10.X

Then, I have downloaded ACML libraries and this link libs
and pass test OK, but AMD extension for scalapack not

I obtain errors like
type_free.c:(.text+0x1a7): undefined reference to `pthread_getspecific'
and some other related to like something were lost

I appreciate very much if somebody could help me

thanks a lot,

g.


Gortiz,
does it work if you add the -lpthread option to the linking command?

Alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Postby gortiz » Thu Feb 28, 2008 8:30 am

Si Alfredo,
solo que ahora tengo problemas con unas librerias
de gfortran que no encuentra la libreria precompilada
de scalapack, alguna idea?
gortiz
 
Posts: 29
Joined: Fri Aug 17, 2007 8:23 pm
Location: Corrientes, Arg.

Postby buttari » Thu Feb 28, 2008 8:37 am

gortiz wrote:Si Alfredo,
solo que ahora tengo problemas con unas librerias
de gfortran que no encuentra la libreria precompilada
de scalapack, alguna idea?


Gortiz,
can you tell me what's the problem exactly? do you get an error message?

Ps
I don't speak Spanish
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

missing libs _gfortran_x

Postby gortiz » Thu Feb 28, 2008 10:12 am

Yes, Alfredo

adding -lpthread works fine. Yesterday Jullien suggest me such idea,
Thanks a lot. But, problems follows as I try said to you in spanish
my nature language, sorry.

I'm trying to use prebuilded libs for scalapack extension of ACML
provided by AMD
http://developer.amd.com/tools/acml/dow ... chive.aspx

But, first of all it is needed to have mpich libs not provided by AMD
Then, I did it, I got from Argone web site the source code for mpich2
and built those libs. But, when I try to do

gfortran -m64 example1.f -L/opt/acml3.1.0/gfortran64/lib/ -lscalapack -lblacsF77init -lblacs -lblacsF77init -lacml -lacml_mv -L$MPIDIR/lib -lmpich -lpthread -lrt -lgfortranbegin -lgfortran

I obtain:

/opt/acml3.1.0/gfortran64/lib//libscalapack.a(pxerbla.o): In function `pxerbla_':
pxerbla.f:(.text+0x36): undefined reference to `_gfortran_filename'
pxerbla.f:(.text+0x47): undefined reference to `_gfortran_line'
pxerbla.f:(.text+0x54): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x61): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x76): undefined reference to `_gfortran_ioparm'

That is all
You have an idea where obtain these missing libs?
or where looking for?
thank a lot,
g.
gortiz
 
Posts: 29
Joined: Fri Aug 17, 2007 8:23 pm
Location: Corrientes, Arg.

Re: missing libs _gfortran_x

Postby buttari » Thu Feb 28, 2008 10:26 am

gortiz wrote:Yes, Alfredo

adding -lpthread works fine. Yesterday Jullien suggest me such idea,
Thanks a lot. But, problems follows as I try said to you in spanish
my nature language, sorry.

I'm trying to use prebuilded libs for scalapack extension of ACML
provided by AMD
http://developer.amd.com/tools/acml/dow ... chive.aspx

But, first of all it is needed to have mpich libs not provided by AMD
Then, I did it, I got from Argone web site the source code for mpich2
and built those libs. But, when I try to do

gfortran -m64 example1.f -L/opt/acml3.1.0/gfortran64/lib/ -lscalapack -lblacsF77init -lblacs -lblacsF77init -lacml -lacml_mv -L$MPIDIR/lib -lmpich -lpthread -lrt -lgfortranbegin -lgfortran

I obtain:

/opt/acml3.1.0/gfortran64/lib//libscalapack.a(pxerbla.o): In function `pxerbla_':
pxerbla.f:(.text+0x36): undefined reference to `_gfortran_filename'
pxerbla.f:(.text+0x47): undefined reference to `_gfortran_line'
pxerbla.f:(.text+0x54): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x61): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x76): undefined reference to `_gfortran_ioparm'

That is all
You have an idea where obtain these missing libs?
or where looking for?
thank a lot,
g.


hmmm... actually the command you use to compile may work but it is not the right way to compile mpi programs. Try this (but I'm not sure it'll fix the problem):



Code: Select all
mpif77 example1.f -L/opt/acml3.1.0/gfortran64/lib/ -lscalapack -lblacsF77init -lblacs -lblacsF77init -lacml -lacml_mv -lpthread
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Postby gortiz » Thu Feb 28, 2008 12:34 pm

OK,
excactly the same output when using your suggestion:

mpif77 example1.f -L/opt/acml3.1.0/gfortran64/lib/ -lscalapack -lblacsF77init -lblacs -lblacsF77init -lacml -lacml_mv -lpthread
/opt/acml3.1.0/gfortran64/lib//libscalapack.a(pxerbla.o): In function `pxerbla_':
pxerbla.f:(.text+0x36): undefined reference to `_gfortran_filename'
pxerbla.f:(.text+0x47): undefined reference to `_gfortran_line'
pxerbla.f:(.text+0x54): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x61): undefined reference to `_gfortran_ioparm'
pxerbla.f:(.text+0x76): undefined reference to `_gfortran_ioparm'

saludos,

g
gortiz
 
Posts: 29
Joined: Fri Aug 17, 2007 8:23 pm
Location: Corrientes, Arg.

Postby Julie » Thu Feb 28, 2008 5:12 pm

gortiz,

Another possibility would be that your gfortran is not correctly installed or you do not have in your LD_LIBRARY_PATH the correct path to gfortran libs.
Try to compile and link a basic fortran program on your machine and see if you get the same error messages.

Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

undefined reference _gfortran_x

Postby gortiz » Fri Feb 29, 2008 3:26 pm

Hi,
still with such problem.

Yes, I compile with gfortran and pass test for compiling several examples.
But, problems appears with scalapack libs implementation.

I find into AMD forum a related report but I did not understand what I should will do...
Here, link to report
http://forums.amd.com/forum/messageview ... adid=84199
Perhaps you could help me to understand the problem?
thank a lot,
g
gortiz
 
Posts: 29
Joined: Fri Aug 17, 2007 8:23 pm
Location: Corrientes, Arg.

Postby Julie » Fri Feb 29, 2008 6:11 pm

Looks like the problem is coming from gfortran itself.
If I were you, I would try to update gfortran and maybe install it manually may help.
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests