[Openmp-dev] : undefined symbol: ompt_start_tool

Jim Cownie via Openmp-dev openmp-dev at lists.llvm.org
Tue Oct 27 08:09:46 PDT 2020


> 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 <mailto:openmp-dev at lists.llvm.org>>
> To: openmp-dev at lists.llvm.org <mailto: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 <mailto: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 <mailto:openmp-dev at lists.llvm.org>> wrote:
> 
> Send Openmp-dev mailing list submissions to
> openmp-dev at lists.llvm.org <mailto: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 <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/635459bb/attachment-0001.html>


More information about the Openmp-dev mailing list