Installing magma 1.4.1 on ubuntu 12.04

Open discussion for MAGMA

Installing magma 1.4.1 on ubuntu 12.04

Postby tmark » Thu Dec 05, 2013 7:24 am

Hello,

I'm trying to install the latest magma on ubuntu 12.04, and am encountering the following issue.

I have installed cuda, blas and lapack via apt-get. This is my make.inc file:

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-5.5


I have only changed the GPU type to Tesla as I'm using an older GPU which is 1.1 compute capability. And I've edited the include directories.

Now, when I run make, the compilation proceeds fine until it gets to dsymv_tesla.cu where the following error ocurrs multiple times.
Code: Select all
dsymv_tesla.cu(99): error: identifier "MAGMA_D_SET2DOUBLE" is undefined

It is called as
Code: Select all
dsymv_tesla.cu:            MAGMA_D_SET2DOUBLE PRECISION(res1,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res, 0) ;
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res_,0);
dsymv_tesla.cu:            MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:            MAGMA_D_SET2DOUBLE PRECISION(res1,0);
dsymv_tesla.cu:            MAGMA_D_SET2DOUBLE PRECISION(res,0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(res_,0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(buff[tx],0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(la[0][bank_shift*(ty_+j)+tx_], 9999);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res1,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res,0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(la[0][bank_shift*(ty_+j)+tx_], 99999);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res,0);
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(res_,0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(tr[j/8], 99999);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res2,0);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res1,0);
dsymv_tesla.cu:        MAGMA_D_SET2DOUBLE PRECISION(res,0);
dsymv_tesla.cu:            MAGMA_D_SET2DOUBLE PRECISION(res_,0);
dsymv_tesla.cu:                MAGMA_D_SET2DOUBLE PRECISION(res_, 0) ;
dsymv_tesla.cu:    MAGMA_D_SET2DOUBLE PRECISION(Ca, 0) ;


I've done some looking around and in "magma_types.h" there are defined MAGMA_S_SET2REAL and MAGMA_D_SET2REAL, but not the one that is missing. Also, MAGMA_D_SET2DOUBLE is only used in dsymv_tesla.cu, while e.g. dsymv_fermi.cu uses MAGMA_D_SET2REAL.

I'm not really sure what to do to fix it, can I just replace the calls to SET2DOUBLE with SET2REAL, or do I add a line in "magma_types.h" or am I doing something completely wrong?
tmark
 
Posts: 1
Joined: Thu Dec 05, 2013 7:07 am

Re: Installing magma 1.4.1 on ubuntu 12.04

Postby mgates3 » Thu Dec 05, 2013 4:14 pm

That's a bug. It should be SET2REAL everywhere. We'll fix it for the next beta. Meanwhile, just replace it with SET2REAL.
-mark
mgates3
 
Posts: 403
Joined: Fri Jan 06, 2012 2:13 pm

Re: Installing magma 1.4.1 on ubuntu 12.04

Postby tpistor » Mon Dec 09, 2013 3:07 am

After doing search and replace:

find:
MAGMA_D_SET2DOUBLE

replace with:
MAGMA_D_SET2REAL

in the file: dsymv_tesla.cu

I still get error.
Can you be more specific about what I should edit. Again, it is strange that dsymv_fermi.cu compiles, but dsymv_tesla.cu does not.
tpistor
 
Posts: 2
Joined: Mon Dec 09, 2013 2:04 am

Re: Installing magma 1.4.1 on ubuntu 12.04

Postby mgates3 » Wed Dec 11, 2013 11:59 am

Try beta 2, which we posted on the website.
http://icl.cs.utk.edu/magma/software/
-mark
mgates3
 
Posts: 403
Joined: Fri Jan 06, 2012 2:13 pm

Re: Installing magma 1.4.1 on ubuntu 12.04

Postby Juzcyn » Tue Mar 11, 2014 2:48 pm

Is that solution work on ubuntu 13.10?
Juzcyn
 
Posts: 1
Joined: Tue Mar 11, 2014 2:43 pm

Re: Installing magma 1.4.1 on ubuntu 12.04

Postby mgates3 » Wed Mar 12, 2014 10:14 am

The latest release should work fine on Ubuntu or another Linux variety. This issue was not specific to Ubuntu.
-mark
mgates3
 
Posts: 403
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron