<div class="gmail_quote">On Fri, Feb 24, 2012 at 11:56 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



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


<br>John<br>
<br></div></div>