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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:33:58+00:00 2026-06-05T23:33:58+00:00

I have a naive question: I compiled a version of Openmpi 1.4.4. with Valgrind

  • 0

I have a naive question:
I compiled a version of Openmpi 1.4.4. with Valgrind :

./configure --prefix=/opt/openmpi-1.4.4/ --enable-debug --enable-memchecker --with-valgrind=/usr....

I want to do memory check.

Usually for debuggin (and running) I compile it with OpenMPI in Ubuntu distributive with

CC =            mpic++
CCFLAGS =   -g

The question is, can I compile my code just with Ubuntu distro MPI 1.4.3 and then run with this modified (valgrind) mpirun version:

mpirun -np 8 valgrind ....

?

  • 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-05T23:34:01+00:00Added an answer on June 5, 2026 at 11:34 pm

    You can always do the mpirun -np 8 valgrind ... bit with any MPI implementation and any valgrind. But you won’t (of course) get the full benefit of the memchecker built into the OpenMPI installation that you built with memcheck enabled and pointing to your valgrind.

    Note too that if you do this you’ll probably get a lot of false positives from valgrind in the MPI routines; you can improve that by building the valgrind MPI wrappers for your stock Ubuntu OpenMPI, as described in the Valgrind manual.

    But as to compiling code with one MPI distribution and running it with another, that can only lead to problems, regardless of the whole with/without valgrind thing. In practice, OpenMPI 1.4.3 and 1.4.4 are similar enough that it will probably work but I wouldn’t recommend it, as it just introduces uncertainty — and the reason why you’re running valgrind anyway is to track down problems, right? There’s no sense in introducing a new place where problems could occur.

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

Sidebar

Related Questions

I'm sorry about the naive question. I have the following: public Array Values {
I have a question that may be quite naive, but I feel the need
This question might be naive as I'm new to ColdFusion programming. I have a
I have a fairly naive thing I want to do and I want to
Does D have 'newtype' (as in Haskell). It's a naive question, as I'm just
This is probably a multi-part question. Background: we have a native (c++) library that
Some Windows native applications have a question mark icon on the title bar. It's
Quick question. I have an app that use a native DLL through PInvoke, this
First of all, apologies if this too naive (I am a beginner). I have
The question seems settled, beaten to death even. Smart people have said smart things

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.