<div dir="ltr">Hi Alexey,<div>If the function is not explicitly used in the code-base in question, how do I</div><div>find which function/module requires it?</div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 4, 2018 at 11:15 PM Alexey Bataev <<a href="mailto:a.bataev@outlook.com">a.bataev@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <pre class="m_-434835105412952674moz-signature" cols="72">It means that this function is used somewhere in the code that is offloaded to the GPU. I don't think this is correct, this function is pthreads-specific and I don't think that NVidia GPUs support pthreads.

-------------
Best regards,
Alexey Bataev</pre>
    <div class="m_-434835105412952674moz-cite-prefix">02.09.2018 3:51, Itaru Kitayama via
      Openmp-dev пишет:<br>
    </div>
    <blockquote type="cite"></blockquote></div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite">
      
      <div dir="ltr">Hi,
        <div>I am trying to build an application that can do OpenMP
          offloading on a POWER8 + P100 system using the latest
          LLVM/Clang toolchain (openmp</div>
        <div>is too the latest).</div>
        <div><br>
        </div>
        <div>The build error is:</div>
        <div>
          <div>[  3%] Building CXX object
            sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o</div>
          <div>cd /gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/sli
            &&
            /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin/clang++ 
            -Dsli_lib_EXPORTS -I/bgsys/drivers/ppcfloor/comm/gcc/include
            -I/gpfs/software/opt/gsl/2.4/include
            -I/gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/libnestutil
-I/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream/libnestutil 
            -std=c++11 -O2 -Wall -fopenmp
            -fopenmp-targets=nvptx64-nvidia-cuda
            --cuda-path=/gpfs/software/opt/cuda/9.2.88  -fPIC   -o
            CMakeFiles/sli_lib.dir/arraydatum.cc.o -c
            /gpfs/homeb/pcp0/pcp0151/projects/nest-simulator/sli/arraydatum.cc</div>
          <div>ptxas fatal   : Cannot take address of function
            '__pthread_key_create'</div>
          <div>clang-8: error: ptxas command failed with exit code 255
            (use -v to see invocation)</div>
          <div>make[2]: *** [sli/CMakeFiles/sli_lib.dir/arraydatum.cc.o]
            Error 255</div>
          <div>make[2]: Leaving directory
            `/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'</div>
          <div>make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2</div>
          <div>make[1]: Leaving directory
            `/gpfs/work/pcp0/pcp0151/build/nest-clang-upstream'</div>
          <div>make: *** [all] Error 2</div>
        </div>
        <div><br>
        </div>
        <div>The CUDA toolkit is 9.2.88, is it possible the error is
          fixed in the</div>
        <div>latest toolkit?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Itaru.</div>
      </div>
      <br>
      <fieldset class="m_-434835105412952674mimeAttachmentHeader"></fieldset>
      <br>
      </blockquote></div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite"><pre>_______________________________________________
Openmp-dev mailing list
<a class="m_-434835105412952674moz-txt-link-abbreviated" href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a>
<a class="m_-434835105412952674moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div></div></div>