[petsc-dev] PETSc with CUDA without CUSP
Daniel Lowell
redratio1 at gmail.com
Mon Sep 12 16:00:11 CDT 2011
Is there a way to configure PETSc to build with nvcc CUDA support, but
without the CUSP flags being set? I'd like to set up PETSc independent of
any CUSP flags or MACROs.
Default, any configuration settings require you specify CUSP and THRUST
support.
Here is my current configuration file:
CFLG="--CFLAGS=-O2 -fopenmp -msse2 -mfpmath=sse -g -ggdb"
FFLG="--FFLAGS=-O2 -fopenmp -g"
WCC="--with-cc=gcc"
MPI_DIR="--with-mpi-dir=$MPICH2_HOME"
WBL="--with-blas-lapack-dir=$INTEL_MKL"
LAD="--download-c-blas-lapack=yes --download-f-blas-lapack=yes"
HYP="--download-hypre=1"
HDF="--with-hdf5=1 --download-hdf5=1"
CUD="--with-cuda-dir=/soft/cuda-4.0/cuda"
USP="--with-thrust-dir=/soft/cuda-4.0/cuda/include
--with-cusp-dir=/soft/cuda-4.0/cuda/include"
./config/configure.py $MPI_DIR $LAD $CFLG $FFLG $HYP $HDF $CUD \
--with-cudac="nvcc -m64" \
--with-precision=double \
--with-clanguage=c \
--with-cuda-arch=sm_20 \
PETSC_ARCH=structgrid_cuda
Note my USP flag is not included in the configuration invocation.
Thanks,
Daniel Lowell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110912/7d656846/attachment.html>
More information about the petsc-dev
mailing list