[petsc-dev] Problems with Intel c++ compiler

Satish Balay balay at mcs.anl.gov
Tue May 10 16:31:00 CDT 2011


Also should have said: issues that might need sending configure.log
are best sent to petsc-maint and not the mailing lists. [we don't want
to flood everybody's mailbox with multi-megabyte configure.log
e-mails]

thanks,
Satish

On Tue, 10 May 2011, Satish Balay wrote:

> On Tue, 10 May 2011, Thomas Witkowski wrote:
> 
> > I`ve compiled PETSc with the Intel c++ compiler. I can compile the tutorials
> > and tests without any problems. But when I change from mpicc to mpicxx, I get
> > the following error:
> 
> You mean changing from 'mpicc' to 'mpicxx' in your makefile - without
> rebuilding PETSc?
> 
> Generally we recommend building PETSc with the language you plan to
> use with your application. i.e in this case '--with-clanguage=cxx'
> 
> Here icc and icpc behave differently wrt
> _intel_fast_memcpy/_intel_fast_memset [and PETSc tries to use these
> rotines via petsc includes] - hence you are getting these errrors.
> 
> 
> Satish
> 
> > 
> > /lustre/jhome7/zdvex/zdv531/local/petsc/dev_dbg/include/petscsys.h(1776):
> > error: identifier "_intel_fast_memcpy" is undefined
> >      _intel_fast_memcpy((char*)(a),(char*)(b),n);
> >      ^
> > 
> > /lustre/jhome7/zdvex/zdv531/local/petsc/dev_dbg/include/petscsys.h(1827):
> > error: identifier "_intel_fast_memset" is undefined
> >        _intel_fast_memset((char*)a,0,n);
> >        ^
> > 
> > compilation aborted for ex1.c (code 2)
> > 
> > 
> > Do you have an idea whats going wrong? I`ve added the configure.log, if it
> > helps anybody.
> > 
> > Thomas
> 
> 




More information about the petsc-dev mailing list