[petsc-users] Unable to configure PETSc with CUDA: Problem with thrust directory

Christophe Ortiz christophe.ortiz at ciemat.es
Thu Aug 28 09:13:23 CDT 2014


Hi all,

I have implemented a problem of coupled diffusion equations in 1D using
PETSc. I was able to configure PETSC with and without MPI. The code runs
well in both cases.

Now I would like to test CUDA but I am unable to configure it. I get an
error message related to thrust directory.

The options I use to configure are the following:

--with-x=1 --with-mpi=0 --with-cc=icc --with-cxx=icpc --with-clanguage=cxx
--with-fc=ifort --with-cuda=1 --with-cuda-dir=/usr/local/cuda-6.0
--with-cuda-arch=sm_35 --with-cudac=/usr/local/cuda/bin/nvcc
--with-thrust=1 --with-thrust-dir=/usr/local/cuda-6.0/include/thrust
--with-cusp=1 --with-cusp-dir=/usr/local/cuda-6.0/include/cusp
--download-txpetscgpu=1 --with-debugging=1 --with-scalar-type=real
--with-precision=double --download-f-blas-lapack

The error message I get is:

===============================================================================
             Configuring PETSc to compile on your system

===============================================================================
TESTING: checkInclude from
config.headers(config/BuildSystem/config/headers.py:86)

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
details):
-------------------------------------------------------------------------------
--with-thrust-dir=/usr/local/cuda-6.0/include/thrust did not work
*******************************************************************************


Did I miss something ?
My GPU is a GeForce Titan Black and I am using CUDA 6.0.

Many thanks in advance for your help.
Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140828/920e6e93/attachment.html>


More information about the petsc-users mailing list