Hello Karl, Yes that works. Thanks a lot for looking into it. (Quite an interesting bug! :) )
Hello all, I have been trying to make use of custom kernels to operate on a precomputed vector obtained from PETSc, but I am getting an error which reads: /home/user/Installation_dir/petsc/arch-linux2-c-debug/include/viennacl/ocl/kernel.hpp:231: void viennacl::ocl::kernel::arg(unsigned int, const VCL_TYPE&) [with VCL_TYPE = viennacl::vector<double>]: Assertion `&val.handle().opencl_handle().context() == &handle_.context() && bool("Kernel and memory object not in the same context!")' failed. I am...