[llvm-dev] cannot build CUDA support with llvm-trunk (original) (raw)
Pierre Moreau via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 4 06:53:56 PDT 2017
- Previous message: [llvm-dev] cannot build CUDA support with llvm-trunk
- Next message: [llvm-dev] cannot build CUDA support with llvm-trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Are you sure it won't build with CUDA support? The logs you linked only say it does not use some of the variables you defined, not that it failed to configure the project or build it. It could be due to CMake (since 3.8) supporting CUDA as a primary language and no longer needing to use find_package(CUDA)
. The includes and path to the libraries should be automatically added, so they no longer use those variables you were setting manually.
I don't have a computer at hand to check that this is indeed the issue, though.
See https://cmake.org/cmake/help/v3.8/release/3.8.html#cuda and https://cmake.org/cmake/help/v3.8/search.html?q=CUDA&check_keywords=yes&area=default for more details about the new support.
Pierre
On 4 Aug 2017, at 13:11, Siegmar Gross via llvm-dev <llvm-dev at lists.llvm.org> wrote:
Hi, I try to build the latest version of llvm-trunk with Cmake (gcc-5.3.0 is necessary for CUDA) on my "SUSE Linux Enterprise Server 12.2 (x8664)". Unfortunately, "libomptarget" for CUDA will not be built with that version. I use the same configuration command as before.
_cmake -DCMAKEINSTALLPREFIX:PATH=/usr/local/${LLVMVERSION} _ _-DCMAKEBUILDTYPE:STRING="Release" _ _-DLLVMPARALLELCOMPILEJOBS:STRING="4" _ _-DLLVMPARALLELLINKJOBS:STRING="4" _ _-DCMAKECCOMPILER:STRING="${DIRPREFIXPROG}/${GCCDIR}/bin/gcc" _ _-DCMAKECFLAGS:STRING="-m64 -I/usr/local/valgrind/include" _ _-DCMAKECXXCOMPILER:STRING="${DIRPREFIXPROG}/${GCCDIR}/bin/g++" _ _-DCMAKECXXFLAGS:STRING="-m64 -I/usr/local/valgrind/include" _ _-DCMAKEEXELINKERFLAGS:STRING="-m64" _ _-DLLVMLIBDIRSUFFIX:STRING="64" _ _-DLLVMPOLLYLINKINTOTOOLS:BOOL=ON _ _-DLIBOMPTARGETDEPLIBELFINCLUDEDIR:STRING="/usr/local/elfutils-0.169/include" _ _-DLIBOMPTARGETDEPLIBELFLIBRARIES:STRING="/usr/local/elfutils-0.169/lib64/libelf.so" _ _-DLIBOMPTARGETDEPLIBFFIINCLUDEDIR:STRING="/usr/include" _ _-DLIBOMPTARGETDEPLIBFFILIBRARIES:STRING="/usr/lib64/libffi.so" _ _-DCUDAINCLUDEDIRS:STRING="/usr/local/cuda/include" _ _-DCUDALIBRARIES:STRING="/usr/local/cuda/lib64/libcudart.so" _ _-DBUILDSHAREDLIBS:BOOL=ON _ _../llvm _ |& tee log.cmake Now I get the following output. loki build 613 tail -13 log.cmake -- Generating done CMake Warning: Manually-specified variables were not used by the project: CUDAINCLUDEDIRS CUDALIBRARIES LIBOMPTARGETDEPLIBELFINCLUDEDIR LIBOMPTARGETDEPLIBELFLIBRARIES LIBOMPTARGETDEPLIBFFIINCLUDEDIR LIBOMPTARGETDEPLIBFFILIBRARIES -- Build files have been written to: /export2/src/llvm-trunk/build loki build 614 Do you have any ideas why I cannot build CUDA support any longer? Is it necessary to change my configuration command to build CUDA support? Thank you very much for any help in advance. Kind regards Siegmar
LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170804/830f91ad/attachment.html>
- Previous message: [llvm-dev] cannot build CUDA support with llvm-trunk
- Next message: [llvm-dev] cannot build CUDA support with llvm-trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]