Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8934309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:45:25+00:00 2026-06-15T09:45:25+00:00

We are using Xcode 4.5 on a C++11 project where we use OpenMP to

  • 0

We are using Xcode 4.5 on a C++11 project where we use OpenMP to speed up our computation:

#pragma omp parallel for
for (uint x=1; x<grid.width()-1; ++x) {
    for (uint y=1; y<grid.height()-1; ++y) {
         // code
    }
}

Although the Activity Monitor shows multiple threads being used by the program we observed that only one core is used:

Screenshot of the Activity Monitor running my code

We also run the same code on Ubuntu using GCC 4.7 and we observed contention on all cores. Could it be that the OpenMP support has been removed in the Apple LLVM? Is there an alternative to OpenMP?
We can’t switch to GCC since we use C++11 features.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:45:26+00:00Added an answer on June 15, 2026 at 9:45 am

    Edit: This answer is now partially outdated. Modern Clang does support OpenMP, just not Apple’s build distributed with Xcode. It is possible to get an OpenMP-enabled compiler from Homebrew or another prepackaged repository.

    Clang does not yet support OpenMP (it has not been removed – it never existed in the first place). You could use Apple’s Grand Central Dispatch (GCD) tasking system or you could use Intel’s Threading Building Blocks (TBB) instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I build my project(include subproject Three20) successfully using xcode GUI,but when I use xcodebuild,it
I know how to build an existing Xcode project using xcodebuild, but I also
How do I add an application icon to my project using Xcode 4.3.1?
My Xcode project builds to variations of the same product using two targets. The
Possible Duplicate: Using Git with an existing Xcode project Setting up a git repository
I am using XCode 4.3.2 and trying to open an already existing project based
I just converted an old project to ARC using Xcode's automatic refactoring. @property (nonatomic,
I am using xCode 4.3.1. After i created a project, i build it and
I have an XCode iPad project using a navigation controller. I tried to get
info: xcode 4.3.2, iOS5, using storyboard. Created project from xcode's Tabbed Application template. Did:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.