Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] PG compilers and OpenMPI 1.6.1
From: Lloyd Brown (lloyd_brown_at_[hidden])
Date: 2012-08-23 17:44:45


Has anyone been able to get OpenMPI 1.6.1 to compile with a recent
Portland Group compiler set? I'm currently trying on RHEL 6.2 with PG
compilers v12.5 (2012), and I keep getting errors like the ones below.
It could easily be a problem with the compiler code, but since this
doesn't happen with OpenMPI 1.6, I'm not sure. Can anyone provide any
insight on what might have changed with respect to that file
('ompi/contrib/vt/vt/tools/vtwrapper/vt_wrapper.cc') between 1.6 and 1.6.1?

Thanks,
Lloyd

Error Messages:

> [root_at_rocks6staging vtwrapper]# pwd
> /tmp/openmpi-1.6.1/ompi/contrib/vt/vt/tools/vtwrapper
> [root_at_rocks6staging vtwrapper]# make V=1
> source='vt_wrapper.cc' object='vtwrapper-vt_wrapper.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/sh ../../config/depcomp \
> pgcpp -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../util -I../../util -DINSIDE_OPENMPI -D_REENTRANT -I/tmp/openmpi-1.6.1/opal/mca/hwloc/hwloc132/hwloc/include -I/usr/include/infiniband -I/usr/include/infiniband -DHAVE_FC -DHAVE_MPI -DHAVE_FMPI -DHAVE_THREADS -DHAVE_OMP -fast -c -o vtwrapper-vt_wrapper.o `test -f 'vt_wrapper.cc' || echo './'`vt_wrapper.cc
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 356: error:
> identifier "omp_lock_t" is undefined
> omp_lock_t _M_lock;
> ^
>
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 359: error:
> identifier "omp_init_lock" is undefined
> omp_init_lock(&_M_lock);
> ^
>
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 364: error:
> identifier "omp_destroy_lock" is undefined
> omp_destroy_lock(&_M_lock);
> ^
>
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 369: error:
> identifier "omp_set_lock" is undefined
> omp_set_lock(&_M_lock);
> ^
>
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 375: error:
> identifier "omp_set_lock" is undefined
> omp_set_lock(&_M_lock);
> ^
>
> "/opt/pgi/linux86-64/12.5/include/CC/stl/_threads.h", line 380: error:
> identifier "omp_unset_lock" is undefined
> omp_unset_lock(&_M_lock);
> ^
>
> 6 errors detected in the compilation of "vt_wrapper.cc".
> make: *** [vtwrapper-vt_wrapper.o] Error 2
> [root_at_rocks6staging vtwrapper]#

-- 
Lloyd Brown
Systems Administrator
Fulton Supercomputing Lab
Brigham Young University
http://marylou.byu.edu