<div dir="ltr">Thank you, Alexey. Now I am seeing:<div><br></div><div><div>$ clang++ -fopenmp -fopenmp-targets=nvptx64 tmp.cpp</div><div>tmp.cpp:1:22: error: Target architecture sm_60 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>P100 is a SM60 device, but supports unified memory. Is a requirement sm_70 equals or greater</div><div>enforced in Clang? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 5:07 AM Alexey Bataev <<a href="mailto:a.bataev@outlook.com">a.bataev@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Most probably, you use default architecture, i.e. sm_35. You need
      to build clang with sm_35, sm_70, ... supported archs. Plus, your
      system must support unified memory.</p>
    <p>I updated error message in the compiler, now it says what target
      architecture you use .<br>
    </p>
    <pre cols="72">-------------
Best regards,
Alexey Bataev</pre>
    <div>05.11.2019 3:01 PM, Itaru Kitayama
      пишет:<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">a.bataev@outlook.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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>
            </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>
    </blockquote>
  </div>

</blockquote></div>