[Openmp-dev] [EXTERNAL] Re: clang 9.0.0 + libstdc++ problem

Jost, Gabriele (ARC-TNC)[Supersmith] via Openmp-dev openmp-dev at lists.llvm.org
Sun Dec 1 13:42:27 PST 2019


Hi Doru and all,
I now have an install of clang + OpenMP target-offload using the old toolchain.
The benchmarks build, but when trying to run I get the following error:

pfe25.gjost 89> more  sp.A.out.txt
libomptarget fatal error 1: failure of target construct while offloading is mand
atory

I am using a Skylake node with 4 V100 GPUs, using only one of the GPUs. Would you have suggestions on how I can narrow down this issue? Should I rebuild libomp in debug mode?
Thanks in advance and best regards,

Gabriele Jost

************************************************************************
Gabriele Jost       NASA Ames Research Center
Email: Gabriele.Jost at nasa.gov      Mail Stop 258-6
Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4
Scientific & HPC Application           P.O. Box 1
Development/Optimization            Moffett Field, CA 94035-0001
************************************************************************

From: "Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost at nasa.gov>
Date: Wednesday, November 27, 2019 at 1:08 PM
To: Gheorghe-Teod Bercea <Gheorghe-Teod.Bercea at ibm.com>
Cc: "openmp-dev at lists.llvm.org" <openmp-dev at lists.llvm.org>
Subject: Re: [EXTERNAL] Re: [Openmp-dev] clang 9.0.0 + libstdc++ problem

Thanks, Doru.
I have for now installed as below. I will try what you suggested next week!


Gabriele Jost

************************************************************************
Gabriele Jost       NASA Ames Research Center
Email: Gabriele.Jost at nasa.gov    Mail Stop 258-6
Work Phone: (650) 604-0468     Bldg. 258, Rm. 232-4
Scientific & HPC Application        P.O. Box 1
Development/Optimization         Moffett Field, CA 94035-0001
************************************************************************

From: Gheorghe-Teod Bercea <Gheorghe-Teod.Bercea at ibm.com>
Date: Wednesday, November 27, 2019 at 12:59 PM
To: "Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost at nasa.gov>
Cc: "openmp-dev at lists.llvm.org" <openmp-dev at lists.llvm.org>
Subject: [EXTERNAL] Re: [Openmp-dev] clang 9.0.0 + libstdc++ problem

Hi Gabriele,

You can set the -DGCC_INSTALL_PREFIX to point to the folder with the desired version of GCC.

The GCC folder you want to point to is the one containing the lib and include folders. I use GCC 6.4.

Thanks a lot,

--Doru








From:        "Jost, Gabriele \(ARC-TNC\)\[Supersmith\] via Openmp-dev" <openmp-dev at lists.llvm.org>
To:        "openmp-dev at lists.llvm.org" <openmp-dev at lists.llvm.org>
Date:        11/27/2019 03:17 PM
Subject:        [EXTERNAL] [Openmp-dev] clang 9.0.0 + libstdc++ problem
Sent by:        "Openmp-dev" <openmp-dev-bounces at lists.llvm.org>
________________________________


Hello llvm developers!

I am trying to build the OpenMP runtime with clang 9.0.0. The clang compiler fails to find the libstdc++ library.

I specified the pathname, but it does not help.

I had to resort to configuring like this:

cmake -DCMAKE_BUILD_TYPE=Release \

-DCMAKE_INSTALL_PREFIX="/nobackupnfs2/clang-install"\

-DCMAKE_C_COMPILER=/nobackupnfs2/clang-install/bin/clang\

-DCMAKE_CXX_COMPILER=/nobackupnfs2/clang-install/bin/clang++\

-DLIBOMPTARGET_DEP_LIBELF_LIBRARIES:FILEPATH=/usr/lib64/libelf.so.1 \

-DLLVM_LIBSTDCXX:FILEPATH=/usr/lib64/libstdc++.so.6\

-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON\

-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 \

-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,60,70 ../llvm-9.0.0.src



Is there a way to tell clang to use the correct library? It complains that the library is too old, but I think it is because it does not find the right one.



Gabriele Jost



************************************************************************

Gabriele Jost       NASA Ames Research Center

Email: Gabriele.Jost at nasa.gov    Mail Stop 258-6

Work Phone: (650) 604-0468     Bldg. 258, Rm. 232-4

Scientific & HPC Application        P.O. Box 1

Development/Optimization         Moffett Field, CA 94035-0001

************************************************************************_______________________________________________
Openmp-dev mailing list
Openmp-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwMFAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=euu8Z6XUYOp8h66U0FQKX3JoJm4XFuAjPWZSf6h9W5g&m=P58EO5EQEe4K25HLYoqW7X65Oid2lHPCNwWj1DV23Vc&s=efp9gM3QTZk1AM1icCbQqPoNSoelhbfMumvfOqx3ia8&e=>



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


More information about the Openmp-dev mailing list