[petsc-dev] Extra String with new BuildSystem
Barry Smith
bsmith at mcs.anl.gov
Wed Nov 7 14:50:52 CST 2012
Please send seqgpu.c
What are you trying to do here? If VecSetValues_SeqGPU is a method in the vec it shouldn't even be trying to generate a fortran stub for it. Likely you have a /*@ in the comment above VecSetValues_SeqGPU . You should remove the @ because it tells PETSc to build the fortran stub which you likely do not want.
Barry
On Nov 7, 2012, at 10:33 AM, "Chekuri Choudary" <cchoudary at rnet-tech.com> wrote:
> I have a custom vector type in a folder /src/vec/vec/impls/seq/seqgpu. With the new BuildSystem, when I do a configure, I get an extra string “VecSetValues_SeqGPU “ in the automatically generated file /src/vec/vec/impls/seq/seqgpu/ftn-auto/vecgpuf.c as shown below. This issue did not occur with previous BuildSystems. Please also find the header file attached. I was wondering if I am doing something wrong or if something in the BuildSystem has changed. Any help is greatly appreciated.
>
> #if defined(__cplusplus)
> extern "C" {
> #endif
> void PETSC_STDCALL VecSetValues_SeqGPU vecsetvalues_(Vec x,PetscInt *ni, PetscInt ix[], PetscScalar y[],InsertMode *iora, int *__ierr ){
> *__ierr = VecSetValues(
> (Vec)PetscToPointer((x) ),*ni,ix,y,*iora);
> }
> #if defined(__cplusplus)
> }
> #endif
>
> Thanks
> Shiva
>
>
> <gpuvecimpl.h><makefile>
More information about the petsc-dev
mailing list