Problem installing magma 1.4.1 on Ubuntu 13.10

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
destino
Posts: 1
Joined: Mon Apr 07, 2014 1:51 pm

Problem installing magma 1.4.1 on Ubuntu 13.10

Post by destino » Mon Apr 07, 2014 3:59 pm

Hello,

I'm sorry, I am stuck with the installation and after a whole day trying I do not know how to fix it. I am completely new to Ubuntu/Linux and probably make basic mistakes. But I have searched everywhere and I'm stuck. Help is very much appreciated!

I use atlas-base and the standard lapack installed through another application. I thought I needed cuda 5.5, which required a work-around for Ubuntu 13.10 (found on another site). I now seem to have cuda 5.5 with nvidia drivers 331.49. I added "export PATH=$PATH:/usr/local/cuda-5.5/bin" to .bashrc.

This was my make file (for a 1.x gpu):

Code: Select all

GPU_TARGET = Tesla

CC        = gcc
NVCC      = nvcc
FORT      = gfortran

ARCH      = ar
ARCHFLAGS = cr
RANLIB    = ranlib

OPTS      = -O3 -DADD_ -fopenmp -DMAGMA_SETAFFINITY
F77OPTS   = -O3 -DADD_
FOPTS     = -O3 -DADD_ -x f95-cpp-input
NVOPTS    = -O3 -DADD_ -Xcompiler -fno-strict-aliasing
LDOPTS    = -fopenmp

# Depending on how ATLAS and LAPACK were compiled, you may need one or more of:
# -lifcore -ldl -lf2c -lgfortran
LIB       = -llapack -lf77blas -latlas -lcblas -lcublas -lcudart -lstdc++ -lm -lgfortran -lifcore

# define library directories here or in your environment
LAPACKDIR = /usr/lib/lapack
ATLASDIR  = /usr/lib/atlas-base
CUDADIR   = /usr/local/cuda
-include make.check-atlas
-include make.check-cuda

LIBDIR    = -L$(LAPACKDIR) \
            -L$(ATLASDIR)/lib \
            -L$(CUDADIR)/lib64

INC       = -I$(CUDADIR)/include
It ran for about 25 minutes and then gave the error below. 'Make' again runs very briefly and says "nothing to be done for `all'" and finishes again with the following errors. Is there anything I can do to make it work?

Code: Select all

make[1]: Entering directory `/home/stein/Downloads/magma-1.4.1/testing'
gcc -fopenmp  testing_z_cublas_v2.o -o testing_z_cublas_v2 \
	libtest.a lin/liblapacktest.a -L../lib -lmagma \
	-L/usr/lib/lapack -L/usr/lib/atlas-base/lib -L/usr/local/cuda/lib64 \
	-llapack -lf77blas -latlas -lcblas -lcublas -lcudart -lstdc++ -lm -lgfortran -lifcore 
/usr/bin/ld: cannot find -lf77blas
/usr/bin/ld: cannot find -latlas
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: cannot find -lifcore
collect2: ld returned 1 exit status
make[1]: *** [testing_z_cublas_v2] Error 1
make[1]: Leaving directory `/home/stein/Downloads/magma-1.4.1/testing'
make: *** [test] Error 2

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: Problem installing magma 1.4.1 on Ubuntu 13.10

Post by mgates3 » Thu Apr 10, 2014 2:02 pm

Are the ATLAS libraries actually in /usr/lib/atlas-base/lib ? For instance, on our machine this looks like:

romulus ~> ls /mnt/scratch/sw/atlas-gcc/lib/
libatlas.a libcblas.a libf77blas.a liblapack.a libptcblas.a libptf77blas.a

As the make.inc.atlas file says, you may not need -lifcore -lgfortran. Depends what Fortran compiler was used to compile LAPACK, etc.

From a lack of warnings, it appears that it found LAPACK (-llapack) and CUDA (-lcublas, etc.).

-mark

Post Reply