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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:14:00+00:00 2026-06-17T20:14:00+00:00

#include <mpi.h> double f() { double timer = MPI_Wtime(); return timer; } What I

  • 0
#include <mpi.h>
double f() {
    double timer = MPI_Wtime();
    return timer;
}

What I am searching for is some set of mock MPI functions, so I can #include <mpi_mocks.h> instead of mpi.h and get it compiled without linking to MPI library. It could also be something like #define MOCK which will trigger this behavior in mpi.h.

  • 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-17T20:14:02+00:00Added an answer on June 17, 2026 at 8:14 pm

    As far as I can see, there are no mocks you could just #include and be done. However, it should be no big deal to write the needed functions yourself and for whichever mocking framework you chose to use. Just start with an empty header and look which functions you compiler complains about.

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

Sidebar

Related Questions

#include<stdio.h> #include<stdlib.h> char* re() { char *p = hello; return p; } int main()
I'm trying to run some MPI programs in xcode 4. I installed openmpi from
I'm trying to implement an MPI program to iteratively set each element in an
My question is rather simple, the MPI_Scatter function definition is: #include <mpi.h> void MPI::Comm::Scatter(const
I've got a very strange bug while using MPI. A successfully created communicator can't
First time using MPI outside some simple practice apps, and something's not going right.
I am writing some code that uses MPI and I was keeping noticing some
I was trying to compile a very simple MPI hello_world: #include <stdio.h> #include <mpi.h>
I'm writing some C++ MPI code for a Parallel Computing class. My code works,
I was wondering why this program actually works in MPI (openMPI 1.5/1.6. ) #include

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.