Fatal error mpi.h no such file or directory


















The problem is almost certainly that you're not using the MPI compiler wrappers. These wrappers do all of the dirty work for you of making sure that all of the appropriate compiler flags, libraries, include directories, library directories, etc. If that doesn't work, then that probably means that you don't have filesystem in your configuration. Also, as MartinR. Alternatively, this program uses mostly constructs that are available in C anyway.

It's easy enough to convert the entire program to compile using a C compiler. I advise compiling using C99 eg. The order in which your print out lines appear on your terminal is not necessarily the order in which things are printed. You are using a shared resource stdout for that so there always must be an ordering problem.

April 13, , Originally Posted by olesen. Take a look at what the other MPI things are doing in the same file. April 20, , With all the changes, you might have old symbols linked in. April 21, , Thread Tools. BB code is On. Smilies are On. Trackbacks are Off. Pingbacks are On. Refbacks are On. Forum Rules. All times are GMT The time now is Add Thread to del. Recent Entries. Find centralized, trusted content and collaborate around the technologies you use most.

Connect and share knowledge within a single location that is structured and easy to search. The problem is almost certainly that you're not using the MPI compiler wrappers. These wrappers do all of the dirty work for you of making sure that all of the appropriate compiler flags, libraries, include directories, library directories, etc.

I'll test symlinks of each for mpic, etc. Take that back Debian includes symlinks via their alternatives system and it still cannot find the proper paths between HDF5 openmpi packages and mpi. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?

Collectives on Stack Overflow. Learn more. Asked 7 years, 2 months ago. Active 9 months ago. Viewed k times. But when i include the path to mpi. Anyone know how to fix this? Improve this question. Wesley Bland 8, 3 3 gold badges 46 46 silver badges 57 57 bronze badges. What is your compiler and operating system? Program using the Message Passing Interface should be compiled by using something like mpicc main. Is it your case?

Regarding the second message : you may have two implementations of the MPI standards on your computer.



0コメント

  • 1000 / 1000