<div dir="ltr">Jonas,<div>No problem. It is at:</div><div><br></div><div><a href="https://github.com/ikitayama/nest-simulator">https://github.com/ikitayama/nest-simulator</a></div><div><br></div><div>... and especially this file </div><div><br></div><div><a href="https://github.com/ikitayama/nest-simulator/blob/master/sli/arraydatum.cc">https://github.com/ikitayama/nest-simulator/blob/master/sli/arraydatum.cc</a></div><div><br></div><div>is the first one on which llvm/clang-8.0.0 stops in a build process.</div><div> <br></div><div><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 3:56 PM Jonas Hahnfeld <<a href="mailto:hahnjo@hahnjo.de">hahnjo@hahnjo.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mabye you are using some thread-local storage? Can you share the code, <br>
everything else will be guesses at best...<br>
<br>
Jonas<br>
<br>
On 2018-09-05 06:15, Itaru Kitayama via Openmp-dev wrote:<br>
> Hi Alexey,<br>
> If the function is not explicitly used in the code-base in question,<br>
> how do I<br>
> find which function/module requires it?<br>
> <br>
> On Tue, Sep 4, 2018 at 11:15 PM Alexey Bataev <<a href="mailto:a.bataev@outlook.com" target="_blank">a.bataev@outlook.com</a>><br>
> wrote:<br>
> <br>
>> It means that this function is used somewhere in the code that is<br>
>> offloaded to the GPU. I don't think this is correct, this function<br>
>> is pthreads-specific and I don't think that NVidia GPUs support<br>
>> pthreads.<br>
>> <br>
>> -------------<br>
>> Best regards,<br>
>> Alexey Bataev<br>
>> <br>
>> 02.09.2018 3:51, Itaru Kitayama via Openmp-dev пишет:<br>
>> <br>
>>> <br>
>> <br>
>>> Hi,<br>
>>> I am trying to build an application that can do OpenMP offloading<br>
>>> on a POWER8 + P100 system using the latest LLVM/Clang toolchain<br>
>>> (openmp<br>
>>> is too the latest).<br>
>>> <br>
>>> The build error is:<br>
>>> <br>
>>> [ 3%] Building CXX object<br>
>>> sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o<br>
>>> cd /gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/sli &&<br>
>>> /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin/clang++<br>
>>> -Dsli_lib_EXPORTS -I/bgsys/drivers/ppcfloor/comm/gcc/include<br>
>>> -I/gpfs/software/opt/gsl/2.4/include<br>
>>> -I/gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/libnestutil<br>
>>> -I/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/libnestutil<br>
>>> -std=c++11 -O2 -Wall -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda<br>
>>> --cuda-path=/gpfs/software/opt/cuda/9.2.88 -fPIC -o<br>
>>> CMakeFiles/sli_lib.dir/arraydatum.cc.o -c<br>
>>> /gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/sli/arraydatum.cc<br>
>>> <br>
>>> ptxas fatal : Cannot take address of function<br>
>>> '__pthread_key_create'<br>
>>> clang-8: error: ptxas command failed with exit code 255 (use -v to<br>
>>> see invocation)<br>
>>> make[2]: *** [sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o] Error<br>
>>> 255<br>
>>> make[2]: Leaving directory<br>
>>> `/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'<br>
>>> make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2<br>
>>> make[1]: Leaving directory<br>
>>> `/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'<br>
>>> make: *** [all] Error 2<br>
>>> <br>
>>> The CUDA toolkit is 9.2.88, is it possible the error is fixed in<br>
>>> the<br>
>>> latest toolkit?<br>
>>> <br>
>>> Thanks,<br>
>>> Itaru.<br>
>> <br>
>>> _______________________________________________<br>
>>> Openmp-dev mailing list<br>
>>> <a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
>>> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
> _______________________________________________<br>
> Openmp-dev mailing list<br>
> <a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div></div></div>