Re: [Q] including omp.h?
Re: [Q] including omp.h?
- Subject: Re: [Q] including omp.h?
- From: Marcus Karlsson <email@hidden>
- Date: Sat, 06 Aug 2011 11:20:28 +0200
--On August 5, 2011 11:32:09 AM -0400 Sean McBride
<email@hidden> wrote:
On Sun, 31 Jul 2011 16:49:34 -0700, JongAm Park said:
Because gcc now supports OpenMP, we can use pragmas for OpenMP without
doing any special steps except for setting "Enable OpenMP" and
"-fopenmp".
I don't have an answer for you.... but are you aware that Apple is
ditching gcc for clang, and that the latter does not support OpenMP?
Apple may ditch gcc but that doesn't mean that users have to. It's still a
supported compiler, and even if it wasn't that wouldn't hinder someone from
using it. For example, there are those who use Intel's C compiler even when
it's not distributed or supported by Apple. Keep in mind that for many
years the compiler that most Mac developers used came not from Apple but
from Metrowerks. It's like saying that you shouldn't use Microsoft Office
because Apple has iWork.
It's true that in general it's a good idea to move to clang, but there's a
lot of cases where that's not yet possible. If you want support for OpenMP
and many other exotic compiler features which is not yet available in clang
then you more or less have to use gcc, possibly update to a newer version
of gcc or find a commercial solution.
The only thing you specifically have to do if you use an unsupported
compiler and want to distribute the executable is to statically link the
compiler's runtime library into it. Some commercial compilers do this by
default. For gcc you just have to give it the -static-libgcc option. This
will make the executable a bit larger but then it will work even on systems
which does not have the compiler installed.
Marcus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden