[petsc-users] Running PETSC_DIR/src/snes/examples/tutorials/ex19.c

Barry Smith bsmith at mcs.anl.gov
Thu Jun 16 20:37:01 CDT 2011


  It appears that you are using the PETSc 3.1.8 RELEASE?  The directions for our GPU stuff http://www.mcs.anl.gov/petsc/petsc-as/features/gpus.html clearly state that it only works in petsc-dev. You must install petsc-dev to use the CUDA stuff.

   Barry


On Jun 16, 2011, at 1:24 PM, Pablo Argañaras wrote:

> Hi PETSc developers,
> I have installed PETSc and Cuda 3.2 on computer, and when I try to run a tutorial example for the nonlinear solvers
>         PETSC_DIR/src/snes/examples/tutorials/ex19.c 
> 
> I get an error message in the mpiaijcuda mat type.
> 
> Any help?
> 
> Thanks,
> Pablo.
> 
> 
> =========================================================================================
> 
> $ ./ex19 -da_vec_type mpicuda -da_mat_type mpiaijcuda -pc_type none -dmmg_nlevels 1 -da_grid_x 100 -da_grid_y 100 -log_summary -mat_no_inode -preload off -cuda_synchronize
> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
> [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type
>  seehttp://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#external!
> [0]PETSC ERROR: Unknown Mat type given: mpiaijcuda!
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 8, Thu Mar 17 13:37:48 CDT 2011
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: ./ex19 on a x86-64-op named mecom14 by arganap Thu Jun 16 15:04:23 2011
> [0]PETSC ERROR: Libraries linked from /usr/local/petsc-201105O/lib
> [0]PETSC ERROR: Configure run at Tue Jun 14 15:55:30 2011
> [0]PETSC ERROR: Configure options --prefix=/usr/local/petsc-201105O --with-petsc-arch=x86-64-opt --with-cuda=1 --with-cusp=1 --with-thrust=1 --doCleanup=0 --with-debugging=0
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: MatSetType() line 51 in src/mat/interface/matreg.c
> [0]PETSC ERROR: DAGetMatrix() line 643 in src/dm/da/utils/fdda.c
> [0]PETSC ERROR: DMGetMatrix() line 231 in src/dm/da/utils/dm.c
> [0]PETSC ERROR: DMMGSetSNES() line 640 in src/snes/utils/damgsnes.c
> [0]PETSC ERROR: DMMGSetSNESLocal_Private() line 952 in src/snes/utils/damgsnes.c
> [0]PETSC ERROR: main() line 140 in src/snes/examples/tutorials/ex19.c
> application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0
> arganap at mecom14:~/PETSc/petsc-3.1-p8/src/snes/examples/tutorials$
> ===================================================================================



More information about the petsc-users mailing list