magma-1.4.0-beta1 does not compile...

Open discussion for MAGMA

magma-1.4.0-beta1 does not compile...

Postby spigafi » Sat Jun 22, 2013 10:12 am

Dear all,

I have a weird error using MAGMA 1.4.0-beta1: it stops compiling after one single file

Code: Select all
$ make
icc -O3 -DADD_ -DCUBLAS_GFORTRAN -DGPUSHMEM=300 -DHAVE_CUBLAS -I/usr/local/cuda/include -I./include -I./control -c control/sizeptr.c -o control/sizeptr.o
icc  -DGPUSHMEM=300 -o control/sizeptr control/sizeptr.o


I do not understand why it does not work, the same make.inc is working with MAGMA 1.3. Any help is appreciated!

Code: Select all
$ icc -V
Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.1.0.146 Build 20130121
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2012 NVIDIA Corporation
Built on Sat_Apr__6_03:07:31_PDT_2013
Cuda compilation tools, release 5.5, V5.5.0

$ which nvcc
/usr/local/cuda/bin/nvcc
spigafi
 
Posts: 7
Joined: Sun Sep 11, 2011 7:22 am
Location: Dublin

Re: magma-1.4.0-beta1 does not compile...

Postby Stan Tomov » Sat Jun 22, 2013 10:33 am

Sorry about this - we use release generation scripts and we had a bug there. To fix it, please add
Code: Select all
.DEFAULT_GOAL :=

at the end of file Makefile.internal. Thanks.
Stan Tomov
 
Posts: 249
Joined: Fri Aug 21, 2009 10:39 pm

Re: magma-1.4.0-beta1 does not compile...

Postby spigafi » Sat Jun 22, 2013 10:48 am

Thanks Staminire!

since I am not expert on makefile generation, I have been fixed the problem in Makefile.internal by reducing this piece of code

Code: Select all
# Define the pointer size for fortran compilation
PTRFILE = $(MAGMA_DIR)/control/sizeptr.c
PTROBJ  = $(MAGMA_DIR)/control/sizeptr.o
PTREXEC = $(MAGMA_DIR)/control/sizeptr
PTRSIZE = $(shell $(PTREXEC))
PTROPT  = -Dmagma_devptr_t="integer(kind=$(PTRSIZE))"

$(PTREXEC): $(PTROBJ)
       $(CC) $(LDOPTS) -o $@ $<


into this

Code: Select all
# Define the pointer size for fortran compilation
PTROPT  = -Dmagma_devptr_t="integer(kind=8)"


but, of course, your solution works!

Cheers,
Filippo
spigafi
 
Posts: 7
Joined: Sun Sep 11, 2011 7:22 am
Location: Dublin

Re: magma-1.4.0-beta1 does not compile...

Postby mgates3 » Mon Jun 24, 2013 1:49 pm

Filippo,
Yes, that should work assuming that you are compiling with 64-bit pointers. (Actually, if you never use the Fortran interface, it doesn't matter.)
-mark
mgates3
 
Posts: 388
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests