• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Q] including omp.h?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] including omp.h?


  • Subject: [Q] including omp.h?
  • From: JongAm Park <email@hidden>
  • Date: Sun, 31 Jul 2011 16:49:34 -0700

Hello,

Because gcc now supports OpenMP, we can use pragmas for OpenMP without doing any special steps except for setting "Enable OpenMP" and "-fopenmp".

However, when I tried to use OpenMP functions like :
int omp_get_max_threads(void)
omp.h should be included.
However the location of omp.h is not /usr/inlcude, /usr/local/include ( if any ) etc.
It was under

/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/omp.h
/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/include/omp.h
/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include/omp.h

However, as you can see, they are under /usr/lib.
It means that Apple or GCC people wanted to hide the include directory , i.e. lib/gcc/i686-apple-darwin10/4.2.1/include for example, under a specific compiler's folder under /usr/lib.

So, although it would be possible to set a header path, but to make the compiler choose appropriate one ( as you can see, those three are for different gcc versions, intel, powerpc and llvm-gcc ), I believe there should be some mechanism to include them in "directory-path-free" way.

Is there any such way to include the omp.h?
Or should their include path set just like other header path?

Thank you.
JongAm Park_______________________________________________

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

  • Prev by Date: Re: [iOS] Block animation kills performance
  • Next by Date: Re: [iOS] Block animation kills performance
  • Previous by thread: Re: Custom autocompletion with NSTextField
  • Next by thread: Debugging "CGImageCreate: invalid image provider: NULL"?
  • Index(es):
    • Date
    • Thread