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

  • Home
  • SEARCH
  • 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 559865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:16:58+00:00 2026-05-13T12:16:58+00:00

I am new to OSX and mac. I have some old number crunching programs.

  • 0

I am new to OSX and mac. I have some old number crunching programs. I wonder what are the best approaches in OSX to

1) find the bottlenecks in the program. I read that the best is to use Xcode and profiling tools, but this is not clear to me which one of this tools is the best one

2) once the bottlneck is found, what is the best approach to change the smallest possible part of the code and translate it into opencl equivalent, so one gets a decent overall speedup. I guess there is a lot of approaches here, just wanted to hear from you what is the best place to start from

Thanks

  • 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-05-13T12:16:58+00:00Added an answer on May 13, 2026 at 12:16 pm

    For (1), I would start with Shark, if only because it’s by far the simplest tool to use. Just launch Shark, point it at your program, and click the button to collect samples. It will give you pretty good sampling data that should show you what routines (or stretches of code) are the bottlenecks. You may find it helpful to build your programs with debug info -g, as it can make the Shark traces a bit easier to read.

    For (2), without knowing more about what you’re doing, it’s impossible to know if OpenCL is suitable for your problem or not. Find the bottlenecks first, then think about how to solve them. Don’t get locked into the idea of using one technology or another before you know what you’d be using it for.

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

Sidebar

Related Questions

I am new to Mac OSX, and I wonder if Xcode can generate ,
I'm running some code on Mac OSX 10.6.6 and XCode 3.2.4 and I have
I am new at Mac OSx development. The app that I am creating requires
I've installed the Mac OSX Python 2.7.3 , and tried switching to the new
Let me start by saying I'm new at programming, mac osx, and bash. I'm
I wrote a program some time ago (Mac OS X, C++, SDL, FMOD) and
I have created some JavaScript files and they run well from my Mac OS
I'm just a new baby in Cocoa. But i have some experience in iOS.
I'm new to Ruby on Rails and have some questions: What tutorials are available
I have an Cocoa Application (Mac OS X SDK 10.7) that is performing some

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.