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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:03:27+00:00 2026-05-23T00:03:27+00:00

I currently have an MPI program written in C and I want to use

  • 0

I currently have an MPI program written in C and I want to use a routine from ScaLAPACK.
I’m working on a parallel version of LDA, and one step is inverting a matrix.
I found a routine in ScaLAPACK that solves this pdgetri.f (it’s written in fortran, I’m not sure that a c routine exists), but I’m not sure how to configure it to work. I’m using Windows and an Intel Dual Core Laptop. The purpose is more didactic than for performance.

  • 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-23T00:03:27+00:00Added an answer on May 23, 2026 at 12:03 am

    SCALAPACK relies on BLACS to provide abstraction to whatever message passing system is in use. If you have an existing MPI communicator established in your code, you can use blacs_gridmap to initialise a BLACS context which is mapped onto your communicator. That context can then be used to create SCALAPACK distributed arrays and those arrays then passed to SCALPACK routines which will then operate on them.

    How you tackle the C-Fortran interfacing problem will depend a lot on what compiler(s) you are using. If you have a “modern” compiler which supports Fortran 2003 features, you can use the C interoperability language features to write an interface wrapper for the functions you need, and then call them directly. On UNIX/LINUX style systems, F2C style interfacing was the defacto way to call Fortran from C, although some of the details where usually compiler specific. I don’t use Windows at all, so I can really help you if you can’t use Fortran 2003 interoperability.

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

Sidebar

Related Questions

I have a program which performs a Monte Carlo-type simulation. Currently I have written
Currently have a drop down menu that is activated on a hover (from display:none
I currently have one project that currently contains multiple packages. These packages make up
We currently have one publisher and four subscribers using merge replication. Due to a
I'm currently working on some MPI code for a graph theory problem in which
Currently have this to get a value from the registry in TSQL. However, I
I am writing an MPI program in which rank 0 reads parameters from a
I have some properties defined by the user, and then I want use them
I want to use MPI (MPICH2) on windows. I write this command: MPI_Barrier(MPI_COMM_WORLD); And
We currently have one table that stores information about what the customer owes us.

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.