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: "A. M.M" <alaa.murar@...24...>
Date: Tue, 26 Sep 2017 01:01:45 +0300

بسم الله الرحمن الرحيم

Thanks a lot


On Tue, Sep 26, 2017 at 1:00 AM, Axel Kohlmeyer <akohlmey@...24...> wrote:
On Mon, Sep 25, 2017 at 5:38 PM, A. M.M <alaa.murar@...33....24...> wrote:
> بسم الله الرحمن الرحيم
>
> Hello,
>
[...]

>
> but the second warning which is
>
> "
> ../manifold_gaussian_bump.cpp(371): warning #268: the format string ends
> before this argument
>                gg, nn[0], nn[1], nn[2] );
>                               ^
> "
>
> still appearing.

unless you are planning to do development in the USER-MANIFOLD
package, you should not worry about it.
it is a bug, but not a critical one. it only affects function
generating test output for developers.

axel.

> i am sorry again and thanks
>
> On Mon, Sep 25, 2017 at 11:36 PM, A. M.M <alaa.murar@...24...> wrote:
>>
>> بسم الله الرحمن الرحيم
>>
>>
>> On Mon, Sep 25, 2017 at 11:34 PM, Axel Kohlmeyer <akohlmey@...24...>
>> wrote:
>>>
>>> On Mon, Sep 25, 2017 at 4:31 PM, A. M.M <alaa.murar@...24...> wrote:
>>> > بسم الله الرحمن الرحيم
>>> >
>>> > Hello,
>>> >
>>> > the latest version 11Aug17.
>>>
>>> FYI, this is the latest *stable* version. the *latest* version is 22 Sep
>>> 2017.
>>
>>
>> i am sorry.
>>>
>>>
>>> > i downloaded it from the LAMMPS website ( as a tarball ).
>>>
>>> ok. i'll have to have a closer look.
>>
>>
>> thanks a lot
>>>
>>>
>>> axel.
>>>
>>> >
>>> > Thanks
>>> >
>>> > 2017-09-25 23:29 GMT+03:00 Axel Kohlmeyer <akohlmey@...24...>:
>>> >>
>>> >> On Mon, Sep 25, 2017 at 4:12 PM, A. M.M <alaa.murar@...24...> wrote:
>>> >> > بسم الله الرحمن الرحيم
>>> >> >
>>> >> > Hello,
>>> >> >
>>> >> > Thanks for your replay.
>>> >> >
>>> >> > I used one of the make file that included in LAMMPS which is
>>> >> > intelmpi
>>> >> > with a
>>> >> > change in it, and the restrict flag appear in the make file.
>>> >> >
>>> >>
>>> >> which version of LAMMPS is this with?
>>> >> how did you obtain/download it?
>>> >>
>>> >> axel.
>>> >>
>>> >>
>>> >> > I attached the file to you
>>> >> >
>>> >> > also I got this warning
>>> >> >
>>> >> > "
>>> >> > ../manifold_gaussian_bump.cpp(371): warning #268: the format string
>>> >> > ends
>>> >> > before this argument
>>> >> >                gg, nn[0], nn[1], nn[2] );
>>> >> >                               ^
>>> >> > "
>>> >> >
>>> >> > Thanks
>>> >> >
>>> >> > 2017-09-25 23:07 GMT+03:00 Axel Kohlmeyer <akohlmey@...24...>:
>>> >> >>
>>> >> >> 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@...396...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.
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> 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.
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> 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.
>>
>>
>



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