Page 1 of 1

CG with Block Jacobi preconditioner on CULA S5

PostPosted: Wed May 22, 2013 9:06 pm
by omidkar
Hi,

I need to use the preconditioned CG with block Jacobi preconditioner using CULA.
Unfortunately, I am getting a weird error upon building the problem:

"
error C2065: 'culaSparseBlockOptions' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'precondOpts'
error C2065: 'precondOpts' : undeclared identifier
error C2065: 'precondOpts' : undeclared identifier
error C2065: 'precondOpts' : undeclared identifier
error C3861: 'culaSparseCudaDcooCgBlockjacobi': identifier not found
"
no similar error occurs when using CG alone, or with other preconditioners supplied by CULA.
I am using CULA s5, with CUDA 5.0 on a Tesla K20.

Can anybody please help me with this issue?

Many thanks,

Omid

Re: CG with Block Jacobi preconditioner on CULA S5

PostPosted: Thu May 23, 2013 6:02 am
by john
You can get the exact details on the structs from the cula_sparse_types.h header:
Code: Select all
typedef struct {
    /// Size of the square diagonal blocks
    int blockSize;
} culaSparseBlockjacobiOptions;