[Openmp-dev] : undefined symbol: ompt_start_tool

Kelvin Li via Openmp-dev openmp-dev at lists.llvm.org
Tue Oct 27 10:24:21 PDT 2020


Hi Jim,

Here is what I get with KMP_VERSION=1.

$ LD_LIBRARY_PATH=$HOME/clang-install/lib KMP_VERSION=1 ./a.out
LLVM OMP version: 5.0.20140926
LLVM OMP library type: performance
LLVM OMP link type: dynamic
LLVM OMP build time: no_timestamp
LLVM OMP build compiler: Clang 11.0
LLVM OMP alternative compiler support: yes
LLVM OMP API version: 5.0 (201611)
LLVM OMP dynamic error checking: no
LLVM OMP plain barrier branch bits: gather=2, release=2
LLVM OMP forkjoin barrier branch bits: gather=2, release=2
LLVM OMP reduction barrier branch bits: gather=1, release=1
LLVM OMP plain barrier pattern: gather=hyper, release=hyper
LLVM OMP forkjoin barrier pattern: gather=hyper, release=hyper
LLVM OMP reduction barrier pattern: gather=hyper, release=hyper
LLVM OMP lock type: run time selectable
LLVM OMP thread affinity support: not used
0
1
3
2

For the mpirun case, 

$ KMP_VERSION=1 mpirun -np 1 ./a.out
./a.out: symbol lookup error: /home/kli/clang-install/lib/libomp.so: 
undefined symbol: ompt_start_tool
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, 
thus causing
the job to be terminated. The first process to do so was:

  Process name: [[52030,1],0]
  Exit code:    127
--------------------------------------------------------------------------


Kelvin




From:   Jim Cownie <jcownie at gmail.com>
To:     Kelvin Li <kli at ca.ibm.com>
Cc:     via Openmp-dev <openmp-dev at lists.llvm.org>
Date:   2020/10/27 11:09 AM
Subject:        [EXTERNAL] Re: [Openmp-dev] :  undefined symbol: 
ompt_start_tool



On 27 Oct 2020, at 15:00, Kelvin Li wrote: I don't think that is the...    
   



This Message Is From an External Sender
This message came from outside your organization.




On 27 Oct 2020, at 15:00, Kelvin Li <kli at ca.ibm.com> wrote:

I don't think that is the case.  There is only one task "-np 1" on one 
node.  Both './a.out' and 'mpirun -np 1 ./a.out' are issued on the same 
node which has the same library in /home/kli/clang-install/lib.  That is 
puzzling me!

It really looks as if you’re getting two different versions of the 
runtime, though, so having the runtime tell you its properties is still 
likely useful.
If nothing else, it may show up that you’re not propagating envirables as 
you might have hoped (if the MPI version doesn’t print anything !)

-- Jim
James Cownie <jcownie at gmail.com>
Mob: +44 780 637 7146
Kelvin




From:        Jim Cownie via Openmp-dev <openmp-dev at lists.llvm.org>
To:        via Openmp-dev <openmp-dev at lists.llvm.org>, 
openmp-dev-request at lists.llvm.org
Date:        2020/10/27 04:46 AM
Subject:        [EXTERNAL] Re: [Openmp-dev] :  undefined symbol: 
ompt_start_tool
Sent by:        "Openmp-dev" <openmp-dev-bounces at lists.llvm.org>



Message: 1 Date: Mon, 26 Oct 2020 15:18:45 -0500 From: Kelvin Li via 
Openmp-dev...   



This Message Is From an External Sender
This message came from outside your organization.




Message: 1
Date: Mon, 26 Oct 2020 15:18:45 -0500
From: Kelvin Li via Openmp-dev <openmp-dev at lists.llvm.org>
To: openmp-dev at lists.llvm.org
Subject: [Openmp-dev] undefined symbol: ompt_start_tool
Message-ID:
<
OFF5259549.0EC65D66-ON8525860D.006EC181-8525860D.006F94A6 at notes.na.collabserv.com
>

Content-Type: text/plain; charset="utf-8"

Has anyone encounter the following error?  I am wondering if it is 
something to do with how I build libomp.so.

$ LD_LIBRARY_PATH=/home/kli/clang-install/lib mpirun -np 1 ./a.out
a.out: symbol lookup error: /home/kli/clang-install/lib/libomp.so: 
undefined symbol: ompt_start_tool
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, 
thus causing
the job to be terminated. The first process to do so was:

Process name: [[14546,1],0]
Exit code:    127
--------------------------------------------------------------------------

But it works without mpirun.

$ LD_LIBRARY_PATH=/home/kli/clang-install/lib ./a.out
0
1
2
3


Kelvin
Are you confident that /homie/kli/clang-install/libis the same on all of 
the nodes used by the MPI program?
And that it contains the same version of libomp.so everywhere?

Perhaps you should also set an envirable to have the OpenMP runtime print 
its version, something like this 
$ KMP_VERSION=1 ./a.out
LLVM OMP version: 5.0.20140926
LLVM OMP library type: performance
LLVM OMP link type: dynamic
LLVM OMP build time: no_timestamp
LLVM OMP build compiler: Clang 12.0
LLVM OMP alternative compiler support: yes
LLVM OMP API version: 5.0 (201611)
LLVM OMP dynamic error checking: no
LLVM OMP thread affinity support: no

On 26 Oct 2020, at 23:44, via Openmp-dev <openmp-dev at lists.llvm.org> 
wrote:

Send Openmp-dev mailing list submissions to
openmp-dev at lists.llvm.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
or, via email, send a message with subject or body 'help' to
openmp-dev-request at lists.llvm.org

You can reach the person managing the list at
openmp-dev-owner at lists.llvm.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Openmp-dev digest..."


Today's Topics:

 1. undefined symbol: ompt_start_tool (Kelvin Li via Openmp-dev)
 2. Re: Declare target functions and libomptarget image
    registration order (Manoel Römmer via Openmp-dev)
 3. Re: Declare target functions and libomptarget image
    registration order (Johannes Doerfert via Openmp-dev)
 4. Re: Declare target functions and libomptarget image
    registration order (Narayanaswamy, Ravi via Openmp-dev)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Oct 2020 15:18:45 -0500
From: Kelvin Li via Openmp-dev <openmp-dev at lists.llvm.org>
To: openmp-dev at lists.llvm.org
Subject: [Openmp-dev] undefined symbol: ompt_start_tool
Message-ID:
<OFF5259549.0EC65D66-ON8525860D.006EC181-8525860D.006F94A6 at notes.na.collabserv.com>

Content-Type: text/plain; charset="utf-8"

Has anyone encounter the following error?  I am wondering if it is 
something to do with how I build libomp.so.

$ LD_LIBRARY_PATH=/home/kli/clang-install/lib mpirun -np 1 ./a.out
a.out: symbol lookup error: /home/kli/clang-install/lib/libomp.so: 
undefined symbol: ompt_start_tool
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, 
thus causing
the job to be terminated. The first process to do so was:

Process name: [[14546,1],0]
Exit code:    127
--------------------------------------------------------------------------

But it works without mpirun.

$ LD_LIBRARY_PATH=/home/kli/clang-install/lib ./a.out
0
1
2
3


Kelvin










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20201027/8fa9c4dc/attachment-0001.html>


More information about the Openmp-dev mailing list