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

DNNCUDA build does not work in C++14 mode

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • 6.08/00
    • 6.12/00
    • TMVA
    • None

    Description

      When ROOT is build in C++14 and Cuda is installed (at least on MACOS), the build fails

      -- Generating /opt/build/root_builds/rootcling.cmake/tmva/tmva/CMakeFiles/dnn_cuda.dir/src/DNN/Architectures/./dnn_cuda_generated_Cuda.cu.o
      /usr/local/cuda/bin/nvcc /Users/pcanal/root_working/code/rootcling/tmva/tmva/src/DNN/Architectures/Cuda.cu -c -o /opt/build/root_builds/rootcling.cmake/tmva/tmva/CMakeFiles/dnn_cuda.dir/src/DNN/Architectures/./dnn_cuda_generated_Cuda.cu.o -ccbin /usr/bin/clang -m64 -Xcompiler ,\"-m64\",\"-pipe\",\"-W\",\"-Wshadow\",\"-Wall\",\"-Woverloaded-virtual\",\"-fsigned-char\",\"-fno-common\",\"-Qunused-arguments\",\"-pthread\",\"-std=c++14\",\"-stdlib=libc++\",\"-O2\",\"-DNDEBUG\" -DNVCC -I/usr/local/cuda/include -I/opt/build/root_builds/rootcling.cmake/include -I/usr/local/cuda/include
      /usr/local/cuda/include/host_defines.h(230): error: expected a ";"
       
      /usr/local/cuda/include/host_defines.h(231): error: expected a ";"
       
      /usr/local/cuda/include/host_defines.h(232): error: expected a ";"
       
      /usr/local/cuda/include/host_defines.h(233): error: expected a ";"
       
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstddef(97): error: identifier "nullptr" is undefined
       

      Cheers,
      Philippe.

      PS. I suspect that the c++14 flag is not passed to nvcc ....

      Attachments

        Activity

          People

            kialbert Kim Albertsson (Inactive)
            pcanal Philippe Canal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: