CUSP v0.2.0

Post date: 2011/10/29 1:38:28

Installation (on CUDA-4.0)

$ cd /usr/local/cuda/include/

$ sudo unzip /tmp/cusp-v0.2.0.zip

examples-v0.2

OK :

poisson.cu

bicgstab.cu, cg.cu, cg_m.cu, gmres.cu

ERROR:

$ nvcc diffusion.cu

diffusion.cu(10): error: no instance of function template "cusp::gallery::diffusion" matches the argument list

argument types are: (cusp::coo_matrix<int, float, cusp::device_memory>, int, int)

1 error detected in the compilation of "/tmp/tmpxft_00004f57_00000000-4_diffusion.cpp1.ii".

SOLVED:

cusp::gallery::diffusion(A, 4, 4);

->

cusp::gallery::diffusion<cusp::gallery::FD>(A, 4, 4);

or

cusp::gallery::diffusion<cusp::gallery::FE>(A, 4, 4);

from cusp-users (Subject: Re: Problem w/ Gallery/diffusion.cu? - msg#00031)