[petsc-dev] Fix for mataijcusp.cu
Jose E. Roman
jroman at dsic.upv.es
Wed Feb 13 03:51:32 CST 2013
mataijcusp.cu does not currently compile (MatGetVecs_MPIAIJCUSP accesses private Vec members).
Here is a fix. I did not push because maybe you prefer to use VecGetLayout here.
Jose
--- a/src/mat/impls/aij/mpi/mpicusp/mpiaijcusp.cu Tue Feb 12 23:21:30 2013 -0600
+++ b/src/mat/impls/aij/mpi/mpicusp/mpiaijcusp.cu Wed Feb 13 10:42:59 2013 +0100
@@ -3,6 +3,7 @@
#include <../src/mat/impls/aij/mpi/mpiaij.h> /*I "petscmat.h" I*/
PETSC_CUDA_EXTERN_C_END
#include "mpicuspmatimpl.h"
+#include <petsc-private/vecimpl.h>
#undef __FUNCT__
#define __FUNCT__ "MatMPIAIJSetPreallocation_MPIAIJCUSP"
More information about the petsc-dev
mailing list