<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Itaru,</p>
    <p>as far as I can tell, libomptarget only tries to load these
      libraries, but will not actually load them, because they are not
      present on your system. The RTLs for the architectures other than
      CUDA and POWER are not built during compilation of libomptarget. <br>
    </p>
    <p>If you still want to get rid of this behavior, you can probably
      remove the other RTLs from</p>
    <p>
      <blockquote type="cite">
        <pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:9.0pt;"><span style="color:#000080;font-weight:bold;">static const char </span>*RTLNames[] = ...</pre>
      </blockquote>
      in line 24ff. in file /openmp/libomptarget/src/rtl.cpp and stop
      libomptarget from trying to load this libraries.</p>
    <p>Best,</p>
    <p>Lukas<br>
    </p>
    <pre class="moz-signature" cols="72">Lukas Sommer, M.Sc.
TU Darmstadt
Embedded Systems and Applications Group (ESA)
Hochschulstr. 10, 64289 Darmstadt, Germany
Phone: +49 6151 1622429
<a class="moz-txt-link-abbreviated" href="http://www.esa.informatik.tu-darmstadt.de">www.esa.informatik.tu-darmstadt.de</a></pre>
    <div class="moz-cite-prefix">On 11/7/19 5:14 AM, Itaru Kitayama via
      Openmp-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANW9uysTBdhR9gxkXv7WW-Gg=BtwOMM5WKbpYMi4LJykSXy8pg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div>Is there a way to avoid loading RTLs for aarch64 and
          x86_64, as I am</div>
        <div>executing my app on PowerPC?</div>
        <div><br>
        </div>
        <div>[...]</div>
        Libomptarget --> Loading RTLs...<br>
        Libomptarget --> Loading library '<a
          href="http://libomptarget.rtl.ppc64.so" moz-do-not-send="true">libomptarget.rtl.ppc64.so</a>'...<br>
        Libomptarget --> Successfully loaded library '<a
          href="http://libomptarget.rtl.ppc64.so" moz-do-not-send="true">libomptarget.rtl.ppc64.so</a>'!<br>
        Libomptarget --> Registering RTL <a
          href="http://libomptarget.rtl.ppc64.so" moz-do-not-send="true">libomptarget.rtl.ppc64.so</a>
        supporting 4 devices!<br>
        Libomptarget --> Loading library '<a
          href="http://libomptarget.rtl.x86_64.so"
          moz-do-not-send="true">libomptarget.rtl.x86_64.so</a>'...<br>
        Libomptarget --> Unable to load library '<a
          href="http://libomptarget.rtl.x86_64.so"
          moz-do-not-send="true">libomptarget.rtl.x86_64.so</a>': <a
          href="http://libomptarget.rtl.x86_64.so"
          moz-do-not-send="true">libomptarget.rtl.x86_64.so</a>: cannot
        open shared object file: No such file or directory!<br>
        Libomptarget --> Loading library '<a
          href="http://libomptarget.rtl.cuda.so" moz-do-not-send="true">libomptarget.rtl.cuda.so</a>'...<br>
        Target CUDA RTL --> Start initializing CUDA<br>
        ==82963== NVPROF is profiling process 82963, command:
        /p/project/cpcp0/pcp0151/opt/nest-clang-offload/bin/nest
        debug.sli<br>
        Libomptarget --> Successfully loaded library '<a
          href="http://libomptarget.rtl.cuda.so" moz-do-not-send="true">libomptarget.rtl.cuda.so</a>'!<br>
        Libomptarget --> Registering RTL <a
          href="http://libomptarget.rtl.cuda.so" moz-do-not-send="true">libomptarget.rtl.cuda.so</a>
        supporting 1 devices!<br>
        Libomptarget --> Loading library '<a
          href="http://libomptarget.rtl.aarch64.so"
          moz-do-not-send="true">libomptarget.rtl.aarch64.so</a>'...<br>
        Libomptarget --> Unable to load library '<a
          href="http://libomptarget.rtl.aarch64.so"
          moz-do-not-send="true">libomptarget.rtl.aarch64.so</a>': <a
          href="http://libomptarget.rtl.aarch64.so"
          moz-do-not-send="true">libomptarget.rtl.aarch64.so</a>: cannot
        open shared object file: No such file or directory!<br>
        Libomptarget --> RTLs loaded!<br>
        <div>[...]</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Openmp-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Openmp-dev@lists.llvm.org">Openmp-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a>
</pre>
    </blockquote>
  </body>
</html>