[petsc-dev] cuda 4.1 errors with sm_20

Chetan Jhurani chetan.jhurani at gmail.com
Tue Mar 27 21:48:34 CDT 2012


Satish,

This is because of -g3 option to nvcc.  Attaching my
earlier mail to petsc-maint.

Chetan

> -----Original Message-----
> From: petsc-dev-bounces at mcs.anl.gov [mailto:petsc-dev-bounces at mcs.anl.gov] On Behalf Of Satish Balay
> Sent: Tuesday, March 27, 2012 7:31 PM
> To: petsc-dev at mcs.anl.gov
> Subject: [petsc-dev] cuda 4.1 errors with sm_20
> 
> I get errors with building petsc using cuda-4.1 with 'sm_20' on
> linux. Reverting to cuda-4.0 [with cusp-v0.3.1, thrust-1.6.0]
> overcomes this issue.
> 
> >From
> http://developer.download.nvidia.com/compute/cuda/4_1/rel/toolkit/docs/CUDA_Toolkit_Release_Notes_And_
> Errata.txt
> * For target architecture sm_2x, a new compiler component 'cicc' is used instead of 'nvopencc'.
> 
> So the new compiler used for sm20 - 'cicc' is perhaps buggy.
> 
> Matt,Sean or Barry, Do you see the same behavior on Mac?
> 
> Satish
> ---------------------------
> balay at bb30:~/petsc-dev/src/mat/impls/aij/seq/seqcusp>nvcc -g -arch=sm_20  -c --compiler-options="-Wall
> -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -fno-inline -O0   -I/home/balay/petsc-
> dev/include -I/home/balay/petsc-dev/arch-cuda-double/include -I/usr/local/cuda/include -
> I/home/balay/petsc-dev/arch-cuda-double/include/txpetscgpu/include -I/usr/local/cusp-v0.3.1/  -
> D__INSDIR__=src/mat/impls/aij/seq/seqcusp/"  aijcusp.cu
> <built-in>(2): error: "__STDC_HOSTED__" is predefined; attempted redefinition ignored
> 
> <built-in>(8): error: "__WCHAR_TYPE__" is predefined; attempted redefinition ignored
> 
> <built-in>(115): error: "__x86_64" is predefined; attempted redefinition ignored
> 
> <built-in>(116): error: "__x86_64__" is predefined; attempted redefinition ignored
> 
> <built-in>(126): error: "__linux__" is predefined; attempted redefinition ignored
> 
> <built-in>(129): error: "__unix__" is predefined; attempted redefinition ignored
> 
> <built-in>(130): error: "unix" is predefined; attempted redefinition ignored
> 
> 7 errors detected in the compilation of "/tmp/tmpxft_00003334_00000000-7_aijcusp.cpp3.i".
-------------- next part --------------
An embedded message was scrubbed...
From: "Chetan Jhurani" <jhurani at txcorp.com>
Subject: Error due to -g3 option and nvcc
Date: Mon, 27 Feb 2012 17:34:35 -0700
Size: 2593
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120327/76a99e28/attachment.mht>


More information about the petsc-dev mailing list