Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] [SPAM:### 83%] problem when compiling ompenmpi V1.5.1
From: jody (jody.xha_at_[hidden])
Date: 2010-12-16 06:10:03


Hi

if i rememmber correctly, "omp.h" is a header file for OpenMP which is
not the same as Open MPI.
So it looks like you have to install OpenMP,
Then you can compile it with the compiler option -fopenmp (in gcc)

Jody

On Thu, Dec 16, 2010 at 11:56 AM, Bernard Secher - SFME/LGLS
<bernard.secher_at_[hidden]> wrote:
> I get the following error message when I compile openmpi V1.5.1:
>
>   CXX    otfprofile-otfprofile.o
> ../../../../../../../../../openmpi-1.5.1-src/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile.cpp:11:18:
> erreur: omp.h : Aucun fichier ou dossier de ce type
> ../../../../../../../../../openmpi-1.5.1-src/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile.cpp:
> In function ‘int main(int, const char**)’:
> ../../../../../../../../../openmpi-1.5.1-src/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile.cpp:325:
> erreur: ‘omp_set_num_threads’ was not declared in this scope
> ../../../../../../../../../openmpi-1.5.1-src/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile.cpp:460:
> erreur: ‘omp_get_thread_num’ was not declared in this scope
> ../../../../../../../../../openmpi-1.5.1-src/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile.cpp:471:
> erreur: ‘omp_get_num_threads’ was not declared in this scope
>
> The compiler doesn't find the omp.h file.
> What happens ?
>
> Best
> Bernard
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>