[petsc-dev] Not able to compile with VecViennaCLGetArrayRead/Write

Mani Chandra mc0710 at gmail.com
Mon Jan 20 01:56:20 CST 2014


Hi Everyone,

I can't seem to get petsc to play nice when I have something like

Vec X;
viennacl::vector<PetscScalar> *x;

VecViennaCLGetArrayWrite(X, &x);
//Launch some opencl kernels
VecViennaCLRestoreArrayWrite(X, &x);

I get the following compilation error:
error: ‘VecSeqViennaCLGetArrayWrite’ was not declared in this scope
error: ‘VecSeqViennaCLRestoreArrayWrite’ was not declared in this scope

I tried adding a header like "#include <petscviennacl.h>" (like
petsccusp.h) but it didn't work. Is there a fix to this or are those
functions not supposed to be called from user code?

Thanks,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140120/e5788afc/attachment.html>


More information about the petsc-dev mailing list