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 7687789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:46:53+00:00 2026-05-31T19:46:53+00:00

I am developing codes for the scientific computing community particularly for solving linear system

  • 0

I am developing codes for the scientific computing community particularly for solving linear system of equations (Ax=b form) iteratively.

I have used BLAS and LAPACK for primitive matrix subroutines but I now realize that there is some scope for manual parallelization. I am working on a Shared Memory system which leaves me with 2 choices: OpenMP and PThreads.

Assuming that time isn’t the greatest factor (& performance of the code is), which is a better, future proof and maybe, portable (to CUDA) way of parallelizing? Is the time spent in using Pthreads worth the performance boost?

I believe that my application (which basically deals with starting many things off at once and then operating upon the “best” value from all of them), will benefit from explicit thread control but I’m afraid the coding will take up too much time and at the end there will be no performance pay off.

I have already looked at few of the similar questions here but they are all pertaining to general applications.

This one is concerning a generic multithreaded application in Linux.

This is a general question as well.

I am aware of SciComp.SE but felt it was more on topic here.

  • 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-31T19:46:55+00:00Added an answer on May 31, 2026 at 7:46 pm

    Your question reads as if you expect that the coding efficiency with OpenMP will be higher than with Pthreads, and the execution efficiency higher with Pthreads than with OpenMP. In general I think that you are right. However, a while back I decided that my time was more important than my computer’s time and opted for OpenMP. It’s not a decision I have had cause to regret, nor is it a decision I have any hard evidence to validate.

    However you are wrong to think that your choices are limited to OpenMP and Pthreads, MPI (I assume you’ve at least heard of this, post again if not) will also run on shared memory machines. For some applications MPI can be programmed to outperform OpenMP on shared-memory computers without much difficulty.

    Three (+/- a few) years ago the essential parallelisation tools in the scientific developer’s toolbox were OpenMP and MPI. Anyone using those tools was part of a large community of fellow users, larger (anecdotal evidence only) than the community of users of Pthreads and MPI. Today, with GPUs and other accelerators popping up all over the place the situation is much more fragmented and it’s difficult to pick one of the winners from HMPP, ACC, Chapel, MPI-3, OpenMP4, CUDA, OpenCL, etc. I still think that OpenMP+MPI is a useful combination, but can’t ignore the new kids on the block.

    FWIW I work on the development of computational EM codes for geophysical applications so quite hard core ‘scientific computing’.

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

Sidebar

Related Questions

I am developing a scientific application used to perform physical simulations. The algorithms used
I am developing a bespoke pricing matrix for a client, they have codes to
We have a software house developing code for us on a project, .NET Web
I have code running in an iPhone application I am developing. Basically, the code
I am developing some scientific software for my university. It is being written in
I am developing a web application such a way that my codes dynamically generating
I'm developing a PHP application that uses HTTP response codes for communication as well
I'm developing a scientific application that has to estimate (as best as possible) the
I am developing an iPad application. I have an SQLite database in my resource
I'm developing some third-party application for Sina Weibo, but have something made me really

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.