Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10853

LLVM CUDA drivers are still being built even when cuda is disabled in CMake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Clarified
    • Affects Version/s: master, 6.20/06
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Arch Linux x86_64, GCC 10.1, Python 3.8

    • Development:

      Description

      When setting -Dcuda=OFF and -Dcudnn=OFF, the CUDA extensions and drivers are still being built if found on the system.

      -- The C compiler identification is GNU 10.1.0
      -- The CXX compiler identification is GNU 10.1.0
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc - works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ - works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found Git: /usr/bin/git (found version "2.27.0")
      -- Looking for python
      -- Preferring Python version 3
      -- Found Python3: /usr/bin/python (found version "3.8.3") found components: Interpreter
      -- ROOT default compression algorithm: zlib
      -- Looking for a Fortran compiler
      -- Looking for a Fortran compiler - /usr/bin/f95
      -- The Fortran compiler identification is GNU 10.1.0
      -- Check for working Fortran compiler: /usr/bin/gfortran
      -- Check for working Fortran compiler: /usr/bin/gfortran - works
      -- Detecting Fortran compiler ABI info
      -- Detecting Fortran compiler ABI info - done
      -- Checking whether /usr/bin/gfortran supports Fortran 90
      -- Checking whether /usr/bin/gfortran supports Fortran 90 - yes
      -- Found GCC. Major version 10, minor version 1
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Found a 64bit system
      -- Found GNU compiler collection
      -- Performing Test GLIBCXX_USE_CXX11_ABI
      -- Performing Test GLIBCXX_USE_CXX11_ABI - Success
      -- ROOT Platform: linux
      -- ROOT Architecture: linuxx8664gcc
      -- Build Type: Release (flags = '-O3 -DNDEBUG')
      -- Compiler Flags: -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -DIS_RPATH_BUILD=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -DIS_RPATH_BUILD=1 -pthread -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
      -- Found ccache: /usr/bin/ccache
      -- Looking for ZLib
      -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
      -- Looking for Unuran
      -- Found Unuran: /lib/libunuran.so
      -- Looking for Freetype
      -- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.2")
      -- Looking for PCRE
      -- Found PCRE: /usr/include (found version "8.44")
      -- Looking for LZMA
      -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
      -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found
      -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
      -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found
      -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
      -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found
      -- Found LibLZMA: /usr/lib/liblzma.so (found version "5.2.5")
      -- Looking for ZSTD
      -- Found ZSTD: /usr/lib/libzstd.so
      -- Looking for xxHash
      -- Found xxHash: /usr/lib/libxxhash.so (found version "0.7.3")
      -- Looking for LZ4
      -- Found LZ4: /usr/lib/liblz4.so (found version "1.9.2")
      -- Looking for X11
      -- Found X11: /usr/include
      -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
      -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
      -- Looking for gethostbyname
      -- Looking for gethostbyname - found
      -- Looking for connect
      -- Looking for connect - found
      -- Looking for remove
      -- Looking for remove - found
      -- Looking for shmat
      -- Looking for shmat - found
      -- Looking for IceConnectionNumber in ICE
      -- Looking for IceConnectionNumber in ICE - found
      -- X11_INCLUDE_DIR: /usr/include
      -- X11_LIBRARIES: /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so
      -- X11_Xpm_INCLUDE_PATH: /usr/include
      -- X11_Xpm_LIB: /usr/lib/libXpm.so
      -- X11_Xft_INCLUDE_PATH: /usr/include
      -- X11_Xft_LIB: /usr/lib/libXft.so
      -- X11_Xext_INCLUDE_PATH: /usr/include
      -- X11_Xext_LIB: /usr/lib/libXext.so
      -- Found GIF: /usr/lib/libgif.so (found version "5.2.1")
      -- Found TIFF: /usr/lib/libtiff.so (found version "4.1.0")
      -- Found PNG: /usr/lib/libpng.so (found version "1.6.37")
      -- Found JPEG: /usr/lib/libjpeg.so (found version "80")
      -- Looking for AfterImage
      -- Found AfterImage: /usr/include/libAfterImage (found version "1.20")
      -- Looking for GSL
      -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
      -- Found GSL: /usr/include (found suitable version "2.6", minimum required is "1.10")
      -- Looking for OpenGL
      -- Found OpenGL: /usr/lib/libOpenGL.so
      -- Looking for GLEW
      -- Found GLEW: /usr/include (found version "2.2.0")
      -- Looking for gl2ps
      CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
        The package name passed to `find_package_handle_standard_args` (GL2PS) does
        not match the name of the calling package (gl2ps).  This can lead to
        problems in calling code that expects `find_package` result variables
        (e.g., `_FOUND`) to follow a certain pattern.
      Call Stack (most recent call first):
        cmake/modules/Findgl2ps.cmake:27 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
        cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
        cmake/modules/SearchInstalledSoftware.cmake:543 (find_Package)
        CMakeLists.txt:169 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
       
      -- Found GL2PS: /lib/libgl2ps.so
      -- Looking for Graphviz
      CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
        The package name passed to `find_package_handle_standard_args` (GRAPHVIZ)
        does not match the name of the calling package (Graphviz).  This can lead
        to problems in calling code that expects `find_package` result variables
        (e.g., `_FOUND`) to follow a certain pattern.
      Call Stack (most recent call first):
        cmake/modules/FindGraphviz.cmake:25 (find_package_handle_standard_args)
        cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
        cmake/modules/SearchInstalledSoftware.cmake:556 (find_package)
        CMakeLists.txt:169 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
       
      -- Found GRAPHVIZ: /usr/include
      -- Looking for LibXml2
      -- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.10")
      -- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1g")
      -- Looking for MySQL
      CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
        The package name passed to `find_package_handle_standard_args` (MYSQL) does
        not match the name of the calling package (MySQL).  This can lead to
        problems in calling code that expects `find_package` result variables
        (e.g., `_FOUND`) to follow a certain pattern.
      Call Stack (most recent call first):
        cmake/modules/FindMySQL.cmake:65 (find_package_handle_standard_args)
        cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
        cmake/modules/SearchInstalledSoftware.cmake:611 (find_package)
        CMakeLists.txt:169 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
       
      -- Found MYSQL: /usr/include/mysql
      -- Looking for FastCGI
      CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
        The package name passed to `find_package_handle_standard_args` (FASTCGI)
        does not match the name of the calling package (FastCGI).  This can lead to
        problems in calling code that expects `find_package` result variables
        (e.g., `_FOUND`) to follow a certain pattern.
      Call Stack (most recent call first):
        cmake/modules/FindFastCGI.cmake:23 (find_package_handle_standard_args)
        cmake/modules/SearchInstalledSoftware.cmake:15 (_find_package)
        cmake/modules/SearchInstalledSoftware.cmake:625 (find_package)
        CMakeLists.txt:169 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
       
      -- Found FASTCGI: /usr/lib/libfcgi.so
      -- Looking for ODBC
      -- Found ODBC: /usr/lib/libodbc.so
      -- Looking for PostgreSQL
      -- Found PostgreSQL: /usr/lib/libpq.so (found version "12.3")
      -- Looking for SQLite
      -- Found Sqlite: /usr/include
      -- Looking for Pythia8
      -- Found Pythia8: /usr/include
      -- Looking for FFTW3
      -- Found fftw3 includes at /usr/include
      -- Found fftw3 library at /usr/lib/libfftw3.so
      -- Looking for CFITSIO
      -- Found CFITSIO: /usr/lib/libcfitsio.so (found version "3.48")
      -- Looking for XROOTD
      -- Found Xrootd version num: 4.12.3 (setting -DROOTXRDVERS=400120003)
      --              libXrdMain not found: xproofd will be a wrapper around xrootd
      --              include_dirs: /usr/include/xrootd;/usr/include/xrootd/private
      --              libraries: /usr/lib/libXrdUtils.so;/usr/lib/libXrdClient.so;/usr/lib/libXrdCl.so
      -- Found FTGL: /usr/include
      -- Looking for TBB
      -- Found TBB: /usr (found suitable version "2020.2", minimum required is "2018")
      -- Detected Compiler: GCC 10.1.0
      -- Performing Test Vc_HAVE_SSE_SINCOS
      -- Performing Test Vc_HAVE_SSE_SINCOS - Success
      -- Performing Test Vc_HAVE_AVX_SINCOS
      -- Performing Test Vc_HAVE_AVX_SINCOS - Success
      -- Performing Test check_cxx_compiler_flag__Wabi
      -- Performing Test check_cxx_compiler_flag__Wabi - Success
      -- Performing Test check_cxx_compiler_flag__fabi_version_0
      -- Performing Test check_cxx_compiler_flag__fabi_version_0 - Success
      -- Performing Test check_cxx_compiler_flag__fabi_compat_version_0
      -- Performing Test check_cxx_compiler_flag__fabi_compat_version_0 - Success
      -- Performing Test check_cxx_compiler_flag__ffp_contract_fast
      -- Performing Test check_cxx_compiler_flag__ffp_contract_fast - Success
      -- target changed from "" to "generic"
      -- Performing Test check_cxx_compiler_flag__march_generic
      -- Performing Test check_cxx_compiler_flag__march_generic - Failed
      -- Performing Test check_cxx_compiler_flag__mno_sse2
      -- Performing Test check_cxx_compiler_flag__mno_sse2 - Success
      -- Performing Test check_cxx_compiler_flag__mno_sse3
      -- Performing Test check_cxx_compiler_flag__mno_sse3 - Success
      -- Performing Test check_cxx_compiler_flag__mno_ssse3
      -- Performing Test check_cxx_compiler_flag__mno_ssse3 - Success
      -- Performing Test check_cxx_compiler_flag__mno_sse4_1
      -- Performing Test check_cxx_compiler_flag__mno_sse4_1 - Success
      -- Performing Test check_cxx_compiler_flag__mno_sse4_2
      -- Performing Test check_cxx_compiler_flag__mno_sse4_2 - Success
      -- Performing Test check_cxx_compiler_flag__mno_sse4a
      -- Performing Test check_cxx_compiler_flag__mno_sse4a - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx
      -- Performing Test check_cxx_compiler_flag__mno_avx - Success
      -- Performing Test check_cxx_compiler_flag__mno_fma
      -- Performing Test check_cxx_compiler_flag__mno_fma - Success
      -- Performing Test check_cxx_compiler_flag__mno_bmi2
      -- Performing Test check_cxx_compiler_flag__mno_bmi2 - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx2
      -- Performing Test check_cxx_compiler_flag__mno_avx2 - Success
      -- Performing Test check_cxx_compiler_flag__mno_xop
      -- Performing Test check_cxx_compiler_flag__mno_xop - Success
      -- Performing Test check_cxx_compiler_flag__mno_fma4
      -- Performing Test check_cxx_compiler_flag__mno_fma4 - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512f
      -- Performing Test check_cxx_compiler_flag__mno_avx512f - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512vl
      -- Performing Test check_cxx_compiler_flag__mno_avx512vl - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512pf
      -- Performing Test check_cxx_compiler_flag__mno_avx512pf - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512er
      -- Performing Test check_cxx_compiler_flag__mno_avx512er - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512cd
      -- Performing Test check_cxx_compiler_flag__mno_avx512cd - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512dq
      -- Performing Test check_cxx_compiler_flag__mno_avx512dq - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512bw
      -- Performing Test check_cxx_compiler_flag__mno_avx512bw - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512ifma
      -- Performing Test check_cxx_compiler_flag__mno_avx512ifma - Success
      -- Performing Test check_cxx_compiler_flag__mno_avx512vbmi
      -- Performing Test check_cxx_compiler_flag__mno_avx512vbmi - Success
      -- Looking for VDT
      -- Found Vdt: /usr/include (found suitable version "0.4", minimum required is "0.4")
      -- Looking for BLAS for optional parts of TMVA
      -- Looking for Fortran sgemm
      -- Looking for Fortran sgemm - not found
      -- Looking for Fortran sgemm
      -- Looking for Fortran sgemm - found
      -- Found BLAS: /usr/lib/libblas.so
      -- Looking for MPI
      -- Found MPI_C: /usr/lib/openmpi/libmpi.so (found version "3.1")
      -- Found MPI_CXX: /usr/lib/openmpi/libmpi_cxx.so (found version "3.1")
      -- Found MPI_Fortran: /usr/lib/openmpi/libmpi_usempif08.so (found version "3.1")
      -- Found MPI: TRUE (found version "3.1")
      -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
      -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
      -- Building LLVM in 'Release' mode.
      -- The ASM compiler identification is GNU
      -- Found assembler: /usr/bin/cc
      -- Looking for backtrace
      -- Looking for backtrace - found
      -- backtrace facility detected in default set of libraries
      -- Found Backtrace: /usr/include
      -- Native target architecture is X86
      -- Threads disabled.
      -- Doxygen disabled.
      -- Go bindings enabled.
      -- LLVM host triple: x86_64-unknown-linux-gnu
      -- LLVM default target triple: x86_64-unknown-linux-gnu
      -- Building with -fPIC
      -- Found PythonInterp: /usr/bin/python (found version "3.8.3")
      -- Constructing LLVMBuild project information
      -- Linker detection: GNU ld
      -- SysLibs: rt;dl;tinfo;/usr/lib/libz.so
      -- Targeting X86
      -- Targeting NVPTX
      -- Clang version: 5.0.0
      -- Found Z3: /usr/lib/libz3.so (found suitable version "4.8.8 - 64 bit", minimum required is "4.5")
      -- Cling version (from VERSION file): ROOT_0.7~dev
      -- Cling will look for C++ headers in '/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0:/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/x86_64-pc-linux-gnu:/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/backward' at runtime.
      -- And then fallback to: 'c++'
      -- Performing Test CXX_HAS_Wno_maybe_uninitialized
      -- Performing Test CXX_HAS_Wno_maybe_uninitialized - Success
      -- Performing Test __result
      -- Performing Test __result - Success
      -- Performing Test CXX_HAS_fno_rtti
      -- Performing Test CXX_HAS_fno_rtti - Success
      -- Performing Test C_HAS_Wno_strict_overflow
      -- Performing Test C_HAS_Wno_strict_overflow - Success
      -- Performing Test C_HAS_Wno_maybe_uninitialized
      -- Performing Test C_HAS_Wno_maybe_uninitialized - Success
      -- Performing Test C_HAS_Wno_parentheses_equality
      -- Performing Test C_HAS_Wno_parentheses_equality - Success
      -- Found OpenMP_C: -fopenmp (found version "4.5")
      -- Found OpenMP_CXX: -fopenmp (found version "4.5")
      -- Found OpenMP_Fortran: -fopenmp (found version "4.5")
      -- Found OpenMP: TRUE (found version "4.5")
      -- Looking for m
      -- Looking for m - not found
      -- Performing Test CXX_HAS_Wno_nonnull_compare
      -- Performing Test CXX_HAS_Wno_nonnull_compare - Success
      -- Performing Test CXX_HAS_Wno_delete_non_virtual_dtor
      -- Performing Test CXX_HAS_Wno_delete_non_virtual_dtor - Success
      -- Performing Test CXX_HAS_Wno_misleading_indentation
      -- Performing Test CXX_HAS_Wno_misleading_indentation - Success
      -- Performing Test CXX_HAS_Wno_overloaded_virtual
      -- Performing Test CXX_HAS_Wno_overloaded_virtual - Success
      -- Performing Test CXX_HAS_fno_strict_aliasing
      -- Performing Test CXX_HAS_fno_strict_aliasing - Success
      -- Performing Test CXX_HAS_Wno_parentheses_equality
      -- Performing Test CXX_HAS_Wno_parentheses_equality - Success
      -- Performing Test CXX_HAS_Wno_cast_function_type
      -- Performing Test CXX_HAS_Wno_cast_function_type - Success
      -- Performing Test CXX_HAS_Wno_deprecated_register
      -- Performing Test CXX_HAS_Wno_deprecated_register - Success
      -- Performing Test CXX_HAS_Wno_register
      -- Performing Test CXX_HAS_Wno_register - Success
      -- Performing Test found_setresuid
      -- Performing Test found_setresuid - Success
      -- Performing Test found_stdstringview
      -- Performing Test found_stdstringview - Success
      -- Performing Test found_stod_stringview
      -- Performing Test found_stod_stringview - Failed
      -- Performing Test found_opplusequal_stringview
      -- Performing Test found_opplusequal_stringview - Success
      -- Performing Test found_stdapply
      -- Performing Test found_stdapply - Success
      -- Performing Test found_stdinvoke
      -- Performing Test found_stdinvoke - Success
      -- Performing Test found_stdindexsequence
      -- Performing Test found_stdindexsequence - Success
      -- Performing Test found_attribute_always_inline
      -- Performing Test found_attribute_always_inline - Success
      -- Performing Test has_found_attribute_noinline
      -- Performing Test has_found_attribute_noinline - Success
      Running /build/root/src/root-6.20.06/build/unix/compiledata.sh
      Making /build/root/src/build/include/compiledata.h
      -- Enabled support for:  asimage builtin_clang builtin_llvm ccache clad dataframe exceptions fftw3 fitsio fortran gdml gnuinstall gsl_shared gviz http fcgi imt mathmore mlp minuit2 mpi mysql odbc opengl pgsql pyroot pythia8 qt5web roofit webgui root7 shadowpw shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum unuran vc vdt x11 xml xrootd
      -- Configuring done
      -- Generating done
      ...
      Scanning dependencies of target LLVMIRReader
      [ 61%] Building CXX object interpreter/llvm/src/tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Cuda.cpp.o
      ...
      [ 68%] Building CXX object interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/ToolChains/Arch/X86.cpp.o
      [ 68%] Building CXX object interpreter/llvm/src/tools/clang/lib/AST/CMakeFiles/clangAST.dir/Expr.cpp.o
      [ 68%] Building CXX object interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/SemaCUDA.cpp.o
      ...
      [ 70%] Building CXX object interpreter/llvm/src/tools/clang/lib/Frontend/CMakeFiles/clangFrontend.dir/TestModuleFileExtension.cpp.o
      [ 70%] Building CXX object interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/ToolChains/Cuda.cpp.o
      [ 70%] Building CXX object interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/ToolChains/Darwin.cpp.o
      ...
      

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            kgizdov Konstantin Gizdov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: