<div dir="ltr"><div dir="ltr">Doru et al.,<div>After checking the CUDA_ROOT environment variable gets set properly, I configured the</div><div>Makefile for my application with CMake, however:</div><div><br></div><div> -- Could NOT find LIBOMPTARGET_DEP_LIBFFI (missing: LIBOMPTARGET_DEP_LIBFFI_LIBRARIES LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIRS)</div><div>CMake Warning (dev) at /p/project/cjzam11/kitayama1/projects/llvm-project/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake:117 (find_package):</div><div>  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.</div><div>  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy</div><div>  command to set the policy and suppress this warning.</div><div><br></div><div>  Environment variable CUDA_ROOT is set to:</div><div><br></div><div>    /usr/local/software/jureca/Stages/2018b/software/CUDA/9.2.88</div><div><br></div><div>  For compatibility, CMake is ignoring the variable.</div><div>Call Stack (most recent call first):</div><div>  /p/project/cjzam11/kitayama1/projects/llvm-project/openmp/libomptarget/CMakeLists.txt:30 (include)</div><div>This warning is for project developers.  Use -Wno-dev to suppress it.</div><div><br></div><div>-- LIBOMPTARGET: Building offloading runtime library libomptarget.</div><div>-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.</div><div>-- LIBOMPTARGET: Building CUDA offloading plugin.</div><div>-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.</div><div>-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.</div><div>-- LIBOMPTARGET: Not building x86_64 offloading plugin: libffi dependency not found.</div><div>-- LIBOMPTARGET: Building CUDA offloading device RTL.</div><div>CMake Error at /p/project/cjzam11/kitayama1/projects/llvm-project/openmp/libomptarget/cmake/Modules/LibomptargetUtils.cmake:26 (message):</div><div>  LIBOMPTARGET: Cannot build CUDA LLVM bitcode offloading device RTL!</div><div>Call Stack (most recent call first):</div><div>  /p/project/cjzam11/kitayama1/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt:115 (libomptarget_error_say)</div><div><br></div><div>I'm at today's HEAD of Trunk of llvm-project.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 16, 2019 at 6:27 AM Gheorghe-Teod Bercea <<a href="mailto:Gheorghe-Teod.Bercea@ibm.com">Gheorghe-Teod.Bercea@ibm.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"><font size="2" face="sans-serif">This typically happens when cmake cannot
find the CUDA installation.</font><br><br><font size="2" face="sans-serif">Thanks,</font><br><br><font size="2" face="sans-serif">--Doru</font><br><br><br><br><br><font size="1" color="#5f5f5f" face="sans-serif">From:      
 </font><font size="1" face="sans-serif">Itaru Kitayama via
Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>></font><br><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif">Lukas Sommer <<a href="mailto:sommer@esa.tu-darmstadt.de" target="_blank">sommer@esa.tu-darmstadt.de</a>></font><br><font size="1" color="#5f5f5f" face="sans-serif">Cc:      
 </font><font size="1" face="sans-serif"><a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a></font><br><font size="1" color="#5f5f5f" face="sans-serif">Date:      
 </font><font size="1" face="sans-serif">03/15/2019 04:50 PM</font><br><font size="1" color="#5f5f5f" face="sans-serif">Subject:    
   </font><font size="1" face="sans-serif">Re: [Openmp-dev]
OpenMP offloading to the sm_35 device from x86 compute nodes</font><br><font size="1" color="#5f5f5f" face="sans-serif">Sent by:    
   </font><font size="1" face="sans-serif">"Openmp-dev"
<<a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank">openmp-dev-bounces@lists.llvm.org</a>></font><br><hr noshade><br><br><br><font size="3">At the HEAD of Trunk of llvm-project, CMake seems to disregards
these variables:</font><br><font size="3">[...]</font><br><font size="3">CMake Warning:</font><br><font size="3">  Manually-specified variables were not used by the
project:</font><br><br><font size="3">    CLANG_OPENMP_NVPTX_DEFAULT_ARCH</font><br><font size="3">    LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES</font><br><br><font size="3">Have you had a chance to build the latest one?</font><br><br><font size="3">On Fri, Mar 15, 2019 at 6:28 PM Lukas Sommer via Openmp-dev
<</font><a href="mailto:openmp-dev@lists.llvm.org" target="_blank"><font size="3" color="blue"><u>openmp-dev@lists.llvm.org</u></font></a><font size="3">>
wrote:</font><br><font size="3">Hi,</font><p><font size="3">I've been building the offloading toolchain for Nvidia
GPUs on x86-systems before and found Jonas Hahnfeld's blog-post extremely
useful to setup the compiler:</font></p><p><a href="https://www.hahnjo.de/blog/2018/10/08/clang-7.0-openmp-offloading-nvidia.html" target="_blank"><font size="3" color="blue"><u>https://www.hahnjo.de/blog/2018/10/08/clang-7.0-openmp-offloading-nvidia.html</u></font></a></p><p><font size="3">Best regards,</font></p><p><font size="3">Lukas Sommer</font></p><p></p><p><font size="3">On 3/15/19 10:23 AM, Alexey Bataev via Openmp-dev wrote:</font><br><font size="3">I'm not sure about it, there are some others who can help
with this.<br></font><br><font size="3">Best regards, </font><br><font size="3">Alexey Bataev</font><br><font size="3"><br>15 марта 2019 г., в 5:08, Itaru Kitayama <</font><a href="mailto:itaru.kitayama@gmail.com" target="_blank"><font size="3" color="blue"><u>itaru.kitayama@gmail.com</u></font></a><font size="3">>
написал(а):<br></font><br><font size="3">Thanks. Does setting </font><br><br><font size="3">LLVM_ENABLE_PROJECTS:STRING=clang;openmp;llvm</font><br><br><font size="3">enough to create the corresponding .bc lib?</font><br><br><font size="3">On Fri, Mar 15, 2019 at 6:01 PM Alexey Bataev <</font><a href="mailto:a.bataev@hotmail.com" target="_blank"><font size="3" color="blue"><u>a.bataev@hotmail.com</u></font></a><font size="3">>
wrote:</font><br><font size="3">Yes, it should support it.<br><br>Best regards,<br>Alexey Bataev<br><br>> 15 марта 2019 г., в 4:55, Itaru Kitayama via Openmp-dev <</font><a href="mailto:openmp-dev@lists.llvm.org" target="_blank"><font size="3" color="blue"><u>openmp-dev@lists.llvm.org</u></font></a><font size="3">>
написал(а):<br>> <br>> Hi,<br>> I'm wondering if LLVM/Clang supports OpenMP offloading to NVIDA<br>> targets from x86 nodes.<br>> <br>> Thanks,<br>> Itaru.<br>> _______________________________________________<br>> Openmp-dev mailing list<br>> </font><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank"><font size="3" color="blue"><u>Openmp-dev@lists.llvm.org</u></font></a><font size="3"><br>> </font><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><font size="3" color="blue"><u>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</u></font></a><br><br><tt><font size="3">_______________________________________________<br>Openmp-dev mailing list<br></font></tt><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank"><tt><font size="3" color="blue"><u>Openmp-dev@lists.llvm.org</u></font></tt></a><tt><font size="3"><br></font></tt><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><tt><font size="3" color="blue"><u>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</u></font></tt></a><tt><font size="3"><br></font></tt><br><font size="3">_______________________________________________<br>Openmp-dev mailing list</font><font size="3" color="blue"><u><br></u></font><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank"><font size="3" color="blue"><u>Openmp-dev@lists.llvm.org</u></font></a><font size="3" color="blue"><u><br></u></font><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><font size="3" color="blue"><u>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</u></font></a><tt><font size="2">_______________________________________________<br>Openmp-dev mailing list<br><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br></font></tt><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><tt><font size="2">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</font></tt></a><tt><font size="2"><br></font></tt><br><br><br>
</p><p></p><p></p><p></p><p></p><p></p></blockquote></div>