[petsc-users] Trouble with running code on GPU's

Barry Smith bsmith at mcs.anl.gov
Thu Jul 21 12:57:15 CDT 2011


> --download-cuda=1 --download-cusp=1 --download-thrust=1

  do not work. You need to install these packages yourself per the instructions and then use the ./configure flags --with-cuda --with-cusp --with-thrust

  Barry

   
On Jul 21, 2011, at 12:27 PM, Gaurish Telang wrote:

> I have configured PETSc with "--download-f-blas-lapack=1 --download-cuda=1 --download-cusp=1 --download-thrust=1"
> 
> I am unable to get the tutorial codes on petsc-dev to work on GPU's. 
> 
> For e.g. in src/snes/examples/tutorials
> 
> ./ex19 -pc_type jacobi -da_vec_type cusp -da_mat_type aijcusp
> I am getting the error message: " Unknown vector type: cusp! "
> 
> Below is the complete error message. 
> 
> [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 vector type: cusp!
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Development HG revision: unknown  HG Date: unknown
> [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 arch-linu named gpute-10 by gaurish.telang Thu Jul 21 13:10:22 2011
> [0]PETSC ERROR: Libraries linked from /home/gaurish.telang/petsc-dev/petsc-dev/arch-linux2-c-debug/lib
> [0]PETSC ERROR: Configure run at Thu Jul 21 12:48:29 2011
> [0]PETSC ERROR: Configure options --download-f-blas-lapack=1 --download-cuda=1 --download-cusp=1 --download-thrust=1
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: VecSetType() line 45 in src/vec/vec/interface/vecreg.c
> [0]PETSC ERROR: DMCreateGlobalVector_DA() line 35 in src/dm/impls/da/dadist.c
> [0]PETSC ERROR: DMCreateGlobalVector() line 286 in src/dm/interface/dm.c
> [0]PETSC ERROR: DMMGSetDM() line 258 in src/snes/utils/damg.c
> [0]PETSC ERROR: main() line 113 in src/snes/examples/tutorials/ex19.c
> --------------------------------------------------------------------------
> MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
> with errorcode 86.
> 
> NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
> You may or may not see output from other processes, depending on
> exactly when Open MPI kills them.
> ------------------------------------------------------------------------
> 
> 
> 



More information about the petsc-users mailing list