[petsc-users] pets-3.1-p6 with CUDA: Unknown vector type: cuda!
Jakub Pola
jakub.pola at gmail.com
Thu Dec 9 13:44:22 CST 2010
Hello,
I was trying to use pets library with my GPU (GTX 460 ) and see how it
works. Unfortunatelly I cant run any example with -vec_type cuda.
Thisis my log from executing ./ex2 -vec_type cuda
[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: cuda!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 6, Tue Nov 16
17:02:32 CST 2010
[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: ./ex2 on a linux-gnu named desktop by kuba Thu Dec 9
20:20:38 2010
[0]PETSC ERROR: Libraries linked
from /home/kuba/External/petsc-3.1-p6/linux-gnu-c-debug/lib
[0]PETSC ERROR: Configure run at Thu Dec 9 19:50:31 2010
[0]PETSC ERROR: Configure options --with-cc=gcc --with-fc=gfortran
--download-f-blas-lapack=1 --download-mpich=1 --with-cuda=1
--with-debug=no
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: VecSetType() line 46 in src/vec/vec/interface/vecreg.c
[0]PETSC ERROR: VecSetTypeFromOptions_Private() line 1335 in
src/vec/vec/interface/vector.c
[0]PETSC ERROR: VecSetFromOptions() line 1372 in
src/vec/vec/interface/vector.c
[0]PETSC ERROR: main() line 127 in src/ksp/ksp/examples/tutorials/ex2.c
application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0[unset]:
aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0
I configured my pets with following command:
petsc-3.1-p6$ ./config/configure.py --with-cc=gcc --with-fc=gfortran
--download-f-blas-lapack=1 --download-mpich=1 --with-cuda=1
--with-debug=no
Everything went ok. Then I compiled the library with
make PETSC_DIR=/home/kuba/External/petsc-3.1-p6
PETSC_ARCH=linux-gnu-c-debug all
and after that tests
make PETSC_DIR=/home/kuba/External/petsc-3.1-p6
PETSC_ARCH=linux-gnu-c-debug test
Tests were performed successfully.
I have cuda configured in LD_LIBRARY_PATH:
ldconfig -p | grep cuda
libicudata.so.42 (ELF) => /usr/lib/libicudata.so.42
libcusparse.so.3 (libc6) => /usr/local/cuda/lib/libcusparse.so.3
libcusparse.so (libc6) => /usr/local/cuda/lib/libcusparse.so
libcurand.so.3 (libc6) => /usr/local/cuda/lib/libcurand.so.3
libcurand.so (libc6) => /usr/local/cuda/lib/libcurand.so
libcufft.so.3 (libc6) => /usr/local/cuda/lib/libcufft.so.3
libcufft.so (libc6) => /usr/local/cuda/lib/libcufft.so
libcudart.so.3 (libc6) => /usr/local/cuda/lib/libcudart.so.3
libcudart.so (libc6) => /usr/local/cuda/lib/libcudart.so
libcuda.so.1 (libc6) => /usr/lib/nvidia-current/libcuda.so.1
libcuda.so (libc6) => /usr/lib/nvidia-current/libcuda.so
libcublas.so.3 (libc6) => /usr/local/cuda/lib/libcublas.so.3
libcublas.so (libc6) => /usr/local/cuda/lib/libcublas.so
and I have cuda directories in PATH:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/kuba/bin:/usr/local/cuda/bin:/usr/local/cuda/include:/usr/local/cuda/lib:/usr/local/cuda/lib64"
Could you please help me with that.
My final destination is to run CG and BICGSTAB solvers and measure
performance using sparse matrices.
Thank you in advance for your help.
Best regards,
Jakub.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20101209/15587332/attachment.htm>
More information about the petsc-users
mailing list