LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Compilation warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Compilation warning


From: Axel Kohlmeyer <akohlmey@...24...>
Date: Mon, 25 Sep 2017 16:07:25 -0400

On Mon, Sep 25, 2017 at 4:04 PM, A. M.M <alaa.murar@...24...> wrote:
> بسم الله الرحمن الرحيم
>
> Hello,
>
> I compiled LAMMPS using intel compiler and I got a warning says
>
> "
> ../pair_list.cpp(52): warning #47: incompatible redefinition of macro
> "_noalias" (declared at line 196 of "../lmptype.h")
>   #define _noalias __restrict
>              ^
> "
> the pair_list lines are ( from 193 to 201 ):
>
> "
> // declaration to lift aliasing restrictions
>
> #if defined(__INTEL_COMPILER)
> #define _noalias restrict     ( this is the line 196 )
> #elif defined(__GNUC__)
> #define _noalias __restrict
> #else
> #define _noalias
> #endif
> "
>
> is there any mistake in this line, like restrict must have a "__" before it


no. the mistake is in your compiler flags.
as has been explained *many* times on this mailing list: when using
the intel compiler you *must* use the -restrict flag.

axel.


> ?
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> lammps-users mailing list
> lammps-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lammps-users
>



-- 
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.