Problem building Magma 1.1.0

Open discussion for MAGMA

Problem building Magma 1.1.0

Postby fletchjp » Mon Nov 21, 2011 6:39 pm

I have a problem building Magma 1.1.0 with the makefile which runs with Magma 1.0.0.

The error is like this:

Code: Select all
gcc -O3 -DADD_ -DGPUSHMEM=200 -I/usr/local/cuda/include -I../include -I../quark/include -c auxiliary.cpp -o auxiliary.o
In file included from auxiliary.cpp:9:
common_magma.h:106: error: 'cublasStatus_t' does not name a type
common_magma.h:107: error: 'cublasStatus_t' does not name a type


The code causing the problem in common_magma.h is new in version 1.1.0 as follows

Code: Select all
/** ****************************************************************************
 *  Define magma streams
 */

extern cudaStream_t magma_stream;

#ifdef __cplusplus
extern "C" {
#endif

cublasStatus_t magmablasSetKernelStream( cudaStream_t stream );
cublasStatus_t magmablasGetKernelStream( cudaStream_t *stream );

#ifdef __cplusplus
}
#endif


My version of cublas.h defines cublasStatus and not cublasStatus_t. Is this a question of a change of version of cuda or is this a typo?

Thanks

John
fletchjp
 
Posts: 175
Joined: Mon Dec 27, 2010 7:29 pm

Re: Problem building Magma 1.1.0

Postby fletchjp » Mon Nov 21, 2011 6:49 pm

I have put this into common_magma.h and it has built down to a different error (with zdotc) which I will report in another thread.

Code: Select all
#define cublasStatus_t cublasStatus


I hope this helps.

John
fletchjp
 
Posts: 175
Joined: Mon Dec 27, 2010 7:29 pm

Re: Problem building Magma 1.1.0

Postby bala » Thu Mar 29, 2012 5:37 am

I too have same above issue while building magma 1.1.0 ? Any error free solution available?
bala
 
Posts: 5
Joined: Fri Jul 29, 2011 3:37 am

Re: Problem building Magma 1.1.0

Postby mgates3 » Wed May 02, 2012 4:07 pm

What version of CUDA are you using? Version 4.0 and 4.1 both define cublasStatus_t in the cublas.h. If you can't upgrade, a work around is to define it as John suggests.
-mark
mgates3
 
Posts: 427
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