Magma 1.3 installation on Ubuntu 12.04

Open discussion for MAGMA

Magma 1.3 installation on Ubuntu 12.04

Postby Malefiz » Mon Dec 10, 2012 5:57 am

I have problems building magma 1.3 on Ubuntu 12.04.
If I use the cmake scripts I get the following output:

Code: Select all
/usr/bin/python: can't open file '/home/florian/magma-1.3.0/tools/genDependencies.py': [Errno 2] No such file or directory


There is no tools subdirectory. Is the archive I downloaded broken?

When using the shared library make.inc I get these error messages:

Code: Select all
gfortran -DADD_ -O3 -fPIC -x f95-cpp-input -Dmagma_devptr_t="integer(kind=)" -I/usr/local/cuda/include -I../include -c magma_zfortran.F90 -o magma_zfortran.o
magma_zfortran.F90:144.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:146.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:347.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:349.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:359.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:362.20:

       integer(kind=):: dT
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:369.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:378.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:381.20:

       integer(kind=):: dT
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:389.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:392.20:

       integer(kind=):: dT
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:393.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:404.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:407.20:

       integer(kind=):: dT
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:408.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:422.20:

       integer(kind=):: dL1
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:424.20:

       integer(kind=):: dL
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:426.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:434.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:437.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:445.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:455.20:

       integer(kind=):: dA
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:458.20:

       integer(kind=):: dB
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:467.20:

       integer(kind=):: dA(*)
                    1
Error: Expected initialization expression at (1)
magma_zfortran.F90:469.20:

       integer(kind=):: dB(*)
                    1
Error: Expected initialization expression at (1)
Fatal Error: Error count reached limit of 25.


Please help. I don't know where to start.
Malefiz
 
Posts: 1
Joined: Mon Dec 10, 2012 5:51 am

Re: Magma 1.3 installation on Ubuntu 12.04

Postby mgates3 » Mon Dec 10, 2012 2:25 pm

The cmake files are experimental. Apparently they need the tools directory, which we don't normally put into the release. We'll look at fixing that for the next release.

Generally, we use static library builds, so you may encounter some issues with shared library builds. We're working to resolve these.

But the error you see here seems unrelated to static vs. shared. It is caused by magma/control/sizeptr not returning how many bytes a C pointer uses. For 32-bit builds, it should be integer(kind=4), while for 64-bit builds, it should be integer(kind=8). However, I don't know why sizeptr is failing. Try running it directly. It should print 4 or 8, with no newline, e.g.:

magma> ./control/sizeptr
8magma>

As a last resort, you can manually edit Makefile.internal to set the correct value. Change
PTROPT = -Dmagma_devptr_t="integer(kind=$(PTRSIZE))"
to
PTROPT = -Dmagma_devptr_t="integer(kind=8)"
or
PTROPT = -Dmagma_devptr_t="integer(kind=4)"
as appropriate.

-mark
mgates3
 
Posts: 438
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron