Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [PATCH] Use plain "inline" in C++
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-05-10 06:26:27


All these responses are good enough for me. Thanks everyone!

On May 10, 2012, at 12:19 AM, Rayson Ho wrote:

> MySQL also uses the "inline" keyword, and MySQL is built with many
> different C++ compilers.
>
> Reference - warning, GPL code owned by Oracle :-)
>
> http://bazaar.launchpad.net/~mysql/mysql-server/trunk/view/head:/include/my_sys.h
>
>
> And Wikipedia also has a few things related to Visual Studio's __forceinline:
>
> http://en.wikipedia.org/wiki/Inline_function#Microsoft_Visual_C.2B.2B_specific
>
> IMO, I think "inline" is supported on pretty much every platform.
>
> Rayson
>
> =================================
> Open Grid Scheduler / Grid Engine
> http://gridscheduler.sourceforge.net/
>
> Scalable Grid Engine Support Program
> http://www.scalablelogic.com/
>
>
>
> On Thu, May 10, 2012 at 12:11 AM, Paul H. Hargrove <PHHargrove_at_[hidden]> wrote:
>> FWIW:
>> GASNet makes the assumption that every C++ compiler groks "inline" and has
>> never encountered any counter-examples.
>>
>> -Paul
>>
>>
>> On 5/9/2012 8:54 PM, Christopher Samuel wrote:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 10/05/12 07:40, Jeff Squyres wrote:
>>>
>>>> Huh -- really? I always thought that the C++ language itself
>>>> included the keyword "inline".
>>>
>>> I asked via Twitter and got these responses..
>>>
>>> # Inline was part of C++98 - the first c++ standard, and
>>> # the inline kwd is in the cfront 1.0 ('86) source. So
>>> # functionally, yes.
>>>
>>> ...and...
>>>
>>> # This may be a different question than "have all C++
>>> # compilers always accepted inline?"
>>>
>>>
>>> I note that autoconf has an inline test for C:
>>>
>>>
>>> http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/C-Compiler.html
>>>
>>> But not for C++:
>>>
>>>
>>> http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/C_002b_002b-Compiler.html
>>>
>>> So perhaps the fact that they've never needed to implement
>>> such a test is in itself a good guide ?
>>>
>>> cheers,
>>> Chris
>>> - -- Christopher Samuel - Senior Systems Administrator
>>> VLSCI - Victorian Life Sciences Computation Initiative
>>> Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
>>> http://www.vlsci.unimelb.edu.au/
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.11 (GNU/Linux)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iEYEARECAAYFAk+rPAoACgkQO2KABBYQAh+fqwCfbsCOjeK5y+WEZnWQ1e+pQmQg
>>> DhQAoJdN6S7IJpUZ51IlXbE0QJOI1jjI
>>> =dWPv
>>> -----END PGP SIGNATURE-----
>>> _______________________________________________
>>> hwloc-devel mailing list
>>> hwloc-devel_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>>
>>
>> --
>> Paul H. Hargrove PHHargrove_at_[hidden]
>> Future Technologies Group
>> HPC Research Department Tel: +1-510-495-2352
>> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
>>
>>
>> _______________________________________________
>> hwloc-devel mailing list
>> hwloc-devel_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>
>
>
> --
> ==================================================
> Open Grid Scheduler - The Official Open Source Grid Engine
> http://gridscheduler.sourceforge.net/
>
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/