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)/includeCode: 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