<div><div dir="auto">I’ve been building trunk Clang locally targeting the P100 device attached to Host. Should I check the tool chain?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 5, 2019 at 23:47 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>
    <p>You're building you code for the architecture that does not
      support unified memory, say sm_35. Unified memory only supported
      for architectures >= sm_70. <br>
    </p>
    <pre cols="72">-------------
Best regards,
Alexey Bataev</pre>
    <div>05.11.2019 3:16 AM, Itaru Kitayama via
      Openmp-dev пишет:<br>
    </div>
    <blockquote type="cite"></blockquote></div><div><blockquote type="cite">
      
      <div dir="ltr">Hi,
        <div>Using a pragma like below:</div>
        <div><br>
        </div>
        <div>
          <div>$ cat tmp.cpp</div>
          <div>#pragma omp requires unified_shared_memory</div>
          <div><br>
          </div>
          <div>int main() {</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>produces en error on a POWER8 based system with P100
          devices (that support unified memory).</div>
        <div><br>
        </div>
        <div>
          <div>$ clang++ -fopenmp -fopenmp-targets=nvptx64 tmp.cpp</div>
          <div>tmp.cpp:1:22: error: Target architecture does not support
            unified addressing</div>
          <div>#pragma omp requires unified_shared_memory</div>
          <div>                     ^</div>
          <div>1 error generated.</div>
        </div>
        <div><br>
        </div>
        <div>The Clang is locally and natively built with the
          appropriate capability, so </div>
        <div>what does this mean?</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      </blockquote></div><div><blockquote type="cite"><pre>_______________________________________________
Openmp-dev mailing list
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a>
</pre>
    </blockquote>
  </div>

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