<div dir="ltr"><div><div>Yes, I did. The code compiles if I include <br>petsc/src/vec/vec/impls/seq/seqviennacl/viennaclvecimpl.h<br></div>but I'm not sure if one is supposed to do that.<br><br></div>Thanks,<br>Mani<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 3:07 AM, Karl Rupp <span dir="ltr"><<a href="mailto:rupp@mcs.anl.gov" target="_blank">rupp@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mani,<div><div class="h5"><br>
<br>
> I can't seem to get petsc to play nice when I have something like<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Vec X;<br>
viennacl::vector<PetscScalar> *x;<br>
<br>
VecViennaCLGetArrayWrite(X, &x);<br>
//Launch some opencl kernels<br>
VecViennaCLRestoreArrayWrite(<u></u>X, &x);<br>
<br>
I get the following compilation error:<br>
error: ‘VecSeqViennaCLGetArrayWrite’ was not declared in this scope<br>
error: ‘<u></u>VecSeqViennaCLRestoreArrayWrit<u></u>e’ was not declared in this scope<br>
<br>
I tried adding a header like "#include <petscviennacl.h>" (like<br>
petsccusp.h) but it didn't work. Is there a fix to this or are those<br>
functions not supposed to be called from user code?<br>
</blockquote>
<br></div></div>
Did you enable ViennaCL in the configure stage through e.g.<br>
 --download-viennacl?<br>
I also plan to push an update of the bindings to the latest ViennaCL release this week.<br>
<br>
Best regards,<br>
Karli<br>
<br>
</blockquote></div><br></div>