[petsc-dev] Intel compilers + CUDA

John Fettig john.fettig at gmail.com
Fri Feb 24 11:06:56 CST 2012


On Fri, Feb 24, 2012 at 11:56 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> for one I mistyped the option - it should be: --with-cudac='nvcc -ccbin
> icc'
>
> But then - should it not be c++? [as cuda internally uses g++ - not gcc].
> So
>
> --with-cudac='nvcc -ccbin icpc'.
>
> But this gives me all kinds of wierd errors in configure.log.. Maybe
> it won't work [with intel compilers]..
>

CUDA .cu files are written in C with some extensions (that are handled by
nvcc and not the passed compiler), so I think you have to use a C
compiler.  You can't write C++ in a .cu file.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120224/cbc81160/attachment.html>


More information about the petsc-dev mailing list