Hi,

the header file 'omp.h' belongs to the compiler, so if OpenMP is enabled by a 
specific compiler option (e.g. '-fopenmp' for GNU) the compiler should actually 
know where the header file is located. There is no need to install any 
additional OpenMP packages.

The header include at the indicated source line is surrounded by the following 
preprocessor condition:

#ifdef _OPENMP
# include <omp.h>
#endif

It seems to me that the preprocessor macro is defined although OpenMP is 
disabled or the compiler doesn't support OpenMP.

Which compiler are you using?
If the compiler supports OpenMP - where is the 'omp.h' located?

If you have a suitable 'omp.h', could you please try to specify its path in 
the preprocessor flags:

$ ./configure CPPFLAGS=-I<path-to-omp.h> ...


To have a working OpenMPI 1.5.1 for now please perform the following steps: 

$ cd openmpi-1.5.1/ompi/contrib/vt/vt/extlib/otf/tools/otfprofile
$ cat otfprofile.cpp | sed -e "s/_OPENMP/NEVER_DEFINED/" >tmp
$ mv tmp otfprofile.cpp


Matthias Jurenz

> On Dec 16, 2010, at 6:49 AM, Jeff Squyres wrote:
>
> Hmm. I thought we had squashed all VT OMP issues. Bummer.
> 
> Can you send all the information located here:
> 
>     http://www.open-mpi.org/community/help/
> 
> If you're not using VampirTrace, you can disable VampirTrace with --disable-
vt.
> 
> On Dec 16, 2010, at 6:14 AM, Bernard Secher - SFME/LGLS wrote:
> 
> > Thanks Jody,
> >
> > Is it possible to install openmpi without openmp ? Is there any option in 
configure for that ?
> >
> > Bernard
> >
> > jody a écrit :
> >> 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
> >>>
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________
> >> users mailing list
> >>
> >> users_at_[hidden]
> >> http://www.open-mpi.org/mailman/listinfo.cgi/users
> >>
> >>
> >>
> >
> >
> > --
> > _\\|//_
> > (' 0 0 ')
> > ____ooO (_) Ooo______________________________________________________
> > Bernard Sécher DEN/DM2S/SFME/LGLS mailto :
> > bsecher_at_[hidden]
> >
> > CEA Saclay, Bât 454, Pièce 114 Phone : 33 (0)1 69 08 73 78
> > 91191 Gif-sur-Yvette Cedex, France Fax : 33 (0)1 69 08 10 87
> > ------------Oooo---------------------------------------------------
> > oooO ( )
> > ( ) ) /
> > \ ( (_/
> > \_)
> >
> >
> >
> > Ce message électronique et tous les fichiers attachés qu'il contient
> > sont confidentiels et destinés exclusivement à l'usage de la personne
> > à laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
> > merci d'en avertir immédiatement son émetteur et de ne pas en conserver
> > de copie.
> >
> > This e-mail and any files transmitted with it are confidential and
> > intended solely for the use of the individual to whom they are addressed.
> > If you have received this e-mail in error please inform the sender
> > immediately, without keeping any copy thereof.
> >
> >
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> 
> -- 
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
> 

Reply via email to