On Fri, Feb 24, 2012 at 11:06 AM, John Fettig <span dir="ltr"><<a href="mailto:john.fettig@gmail.com">john.fettig@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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.</div>
</div></blockquote><div><br></div><div>I do not think this is correct. You can have C++.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><span class="HOEnZb"><font color="#888888"><br>John<br>
<br></font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>