Page 1 of 1

Get Segmentation fault when use culaSparseSetCudaPlatform

PostPosted: Sun Apr 13, 2014 9:52 pm
by altria
Hi, everyone.
Every time I use culaSparseSetCudaPlatform, I get Segmentation fault.
But with the same code, use culaSparseSetHostPlatform will give me correct answer.

Hence I turn to examples.
In iterativeSystemSolve example. It can execute "host,no preconditioner,cg" and "host,ilu0,cg". But when it comes to "cg + ilu0 on cuda", i get Segmentation fault again.

Ubuntu 12.04
CUDA 6.0
Geforce 540M.

I am sure I have a CUDA device, for I ran deviceQuery example in CUDA and get output similar to the manul.
Could you please help me?

Re: Get Segmentation fault when use culaSparseSetCudaPlatfor

PostPosted: Sat Jul 05, 2014 10:21 am
by blgolden
works for me but I'm using csr and a Titan or k20,

if( dflag )
culaSparseCudaOptions platformOpts;
culaSparseCudaOptionsInit(handle, &platformOpts);
culaSparseSetCudaPlatform(handle, plan, &platformOpts);