PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Unable to compile ATLAS 3.10.1
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Jim Petersen



Joined: 26 Feb 2013
Posts: 6

PostPosted: Thu Feb 28, 2013 11:29 am    Post subject: PGI and ATLAS Reply with quote

Thanks, Mat. I'll give this a try.

I've also posted the question on the ATLAS support page. If they provide a solution, I'll let you know.

--Jim
Back to top
View user's profile
Jim Petersen



Joined: 26 Feb 2013
Posts: 6

PostPosted: Thu Feb 28, 2013 12:21 pm    Post subject: Error in make check step Reply with quote

Atlas compiled with pgf77. During the "make check" step, I now get these errors, though.

/opt/pgi/linux86-64/13.2/bin/pgf77 -Mnomain -o xsqrtst sqrtst.o \
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/libtstatlas.a /home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/liblapack.a /home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/libcblas.a /home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/libf77blas.a \
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/libatlas.a -lpthread -lm
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/liblapack.a(ATL_C2Fsormlq.o): In function `ATL_C2Fsormlq_wrk':
ATL_C2Formlq.c:(.text+0xde): undefined reference to `sormlq_'
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/liblapack.a(ATL_C2Fsormql.o): In function `ATL_C2Fsormql_wrk':
ATL_C2Formql.c:(.text+0xde): undefined reference to `sormql_'
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/liblapack.a(ATL_C2Fsormqr.o): In function `ATL_C2Fsormqr_wrk':
ATL_C2Formqr.c:(.text+0xde): undefined reference to `sormqr_'
/home/jn_petersen/atlas/ATLAS3.10.1/my_build_dir/lib/liblapack.a(ATL_C2Fsormrq.o): In function `ATL_C2Fsormrq_wrk':
ATL_C2Formrq.c:(.text+0xde): undefined reference to `sormrq_'
make[3]: *** [xsqrtst] Error 2

Is it not able to find these routines because of a naming issue between pgf77 and gcc?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Thu Feb 28, 2013 3:55 pm    Post subject: Reply with quote

Hi Jim,

It looks like you need to add "-llapack -lblas" to the "LIBS" variable in Make.inc. I'm not sure why these symbols aren't in the versions found in the "lib" directory, but they aren't.

Code:
% grep LIBS Make.inc
   LIBS = -lpthread -lm -llapack -lblas
% make check
...
DONE BUILDING TESTERS, RUNNING:
SCOPING FOR FAILURES IN BIN TESTS:
fgrep -e fault -e FAULT -e error -e ERROR -e fail -e FAIL \
           bin/sanity.out
8 cases: 8 passed, 0 skipped, 0 failed
4 cases: 4 passed, 0 skipped, 0 failed
8 cases: 8 passed, 0 skipped, 0 failed
4 cases: 4 passed, 0 skipped, 0 failed
8 cases: 8 passed, 0 skipped, 0 failed
4 cases: 4 passed, 0 skipped, 0 failed
8 cases: 8 passed, 0 skipped, 0 failed
4 cases: 4 passed, 0 skipped, 0 failed
DONE
SCOPING FOR FAILURES IN CBLAS TESTS:
%


- Mat
Back to top
View user's profile
Jim Petersen



Joined: 26 Feb 2013
Posts: 6

PostPosted: Sat Mar 09, 2013 12:43 pm    Post subject: More issues Reply with quote

Mat,

I am now getting:

/opt/pgi/linux86-64/13.2/bin/pgf77 -O2 -o xscblat2 c_sblat2.o c_sblas2.o \
c_s2chke.o c_xerbla.o auxiliary.o /home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/lib/liblapack.a \
/home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/lib/libcblas.a /home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/lib/libatlas.a -lpthread -lm
c_sblat2.o: In function `sblat2':
/home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/..//interfaces/blas/C/testing/c_sblat2.f:246: undefined reference to `slamch_'
make[3]: *** [xscblat2] Error 2
make[3]: Leaving directory `/home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/interfaces/blas/C/testing'
make[2]: *** [sanity_test] Error 2
make[2]: Leaving directory `/home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir/interfaces/blas/C/testing'
make[1]: *** [sanity_test] Error 2
make[1]: Leaving directory `/home/jn_petersen/numerics/ATLAS3.10.1/my_build_dir'
make: *** [test] Error 2

I did make the change so it will search the libraries
jn_petersen@chebe-gpu:~/numerics/ATLAS3.10.1/my_build_dir$ grep LIBS Make.inc
LIBS = -lpthread -lm -llapack -lblas

It seems that it should find slmch as a part of the lapack library. Any suggestions now?

--Jim
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Mon Mar 11, 2013 9:05 am    Post subject: Reply with quote

I'm not sure why it's not in you Lapack lib. Does "nm" show it in the lib? Is the symbol decorated correctly?

Code:
% nm /opt/pgi/linux86-64/13.2/lib/liblapack.a | grep slamch | grep T
0000000000000000 T slamch_


- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group