More info! The command to compile that fails:<br><br>dlowell@cookie:/homes/dlowell/rnet/petsc-rnet/src/ksp/ksp/impls/bcgsgpu$ make lib<br>/disks/soft/mpich2-1.3.1-gcc/bin/mpicc -o bcgsgpu.o -c -O3 -g3   -I/homes/dlowell/rnet/petsc-rnet/include -I/homes/dlowell/rnet/petsc-rnet/structgrid_cuda/include -I/soft/cuda-4.0/cuda/include -I/soft/cuda-4.0/cuda/include/ -I/homes/dlowell/rnet/petsc-rnet/structgrid_cuda/lib -I/disks/soft/mpich2-1.3.1-gcc/include    -D__INSDIR__=src/ksp/ksp/impls/bcgsgpu/  bcgsgpu.c<br>
<br><br><br><br><br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 1:46 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Do you include kspimpl.h in your code?<br>
<br>
#include <private/kspimpl.h><br>
<font color="#888888"><br>
Satish<br>
</font><div><div></div><div class="h5"><br>
<br>
On Wed, 7 Sep 2011, Daniel Lowell wrote:<br>
<br>
> In my KSP implementation I have this in my function KSPSolve_BCGSGPU(KSP<br>
> ksp)<br>
><br>
>  (*ksp->pc->mat->ops->mult)(ksp->pc->mat,P,T);//where P and T are type Vec<br>
><br>
> I get this error from icc:<br>
> bcgsgpu.c:222: error: dereferencing pointer to incomplete type.<br>
><br>
> Not sure what I'm doing wrong here.<br>
><br>
<br>
</div></div></blockquote></div><br>