<div class="gmail_extra">On Mon, Apr 23, 2012 at 5:27 PM, Daniel Lowell <span dir="ltr"><<a href="mailto:redratio1@gmail.com" target="_blank">redratio1@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>Hi all,</div><div><br></div><div><br></div>Has anyone run into any problems with NVCC 4.1 or .42 on PETSc with arch=sm_20?<div>I have having real issues with it. I keep getting this:</div></blockquote><div><br></div>
<div>Can you send the whole make.log to petsc-maint?</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><div>
#$ cicc  -arch compute_20 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 -g -O0 "/tmp/tmpxft_00000b8b_00000000-10_vecgpu" "/tmp/tmpxft_00000b8b_00000000-7_vecgpu.cpp3.i"  -o "/tmp/tmpxft_00000b8b_00000000-2_vecgpu.ptx"</div>

<div><built-in>(2): error: "__STDC_HOSTED__" is predefined; attempted redefinition ignored</div><div><br></div><div><built-in>(8): error: "__WCHAR_TYPE__" is predefined; attempted redefinition ignored</div>

<div><br></div><div><built-in>(115): error: "__x86_64" is predefined; attempted redefinition ignored</div><div><br></div><div><built-in>(116): error: "__x86_64__" is predefined; attempted redefinition ignored</div>

<div><br></div><div><built-in>(126): error: "__linux__" is predefined; attempted redefinition ignored</div><div><br></div><div><built-in>(128): error: "__unix__" is predefined; attempted redefinition ignored</div>

<div><br></div><div>6 errors detected in the compilation of "/tmp/tmpxft_00000b8b_00000000-7_vecgpu.cpp3.i".</div><div># --error 0x1 --</div><div><br></div><div><br></div><div>
4.0 works fine, no issues.</div><div>4.0 version uses the older nvopencc, in 4.1 and 4.2 they use something called cicc, for<span style> target architecture sm_2x. O</span><span style="text-align:left">f course it does no mention cicc in the updated nvcc documentation at all.</span></div>

<div><br clear="all"><div>Tried 4.2 with GCC 4.3 and 4.4 without any difference in behavior.</div><div><br></div><div><br></div><div>PETSc configuration script:</div><div><div><br></div><div>MPI_DIR="--with-mpi-dir=$MPICH2_HOME"</div>

<div>LAD="--download-f-blas-lapack=yes"</div><div>CUD="--with-cuda-dir=/soft/cuda-4.2/cuda"</div><div>./config/configure.py $MPI_DIR $LAD $CUD \</div><div>--with-debugging=1 \</div><div>--with-cudac="nvcc -m64 -g -G" \</div>

<div>--with-precision=double \</div><div>--with-clanguage=c \</div><div>--with-cuda-arch=sm_20</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div><div><br></div>-- <br>Daniel Lowell<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>
</div>