Skip to content

GraphBLAS Compilation with the CUB error #28

@shibizhao

Description

@shibizhao

Hi,

Thanks for the authors' contributions to GraphBLAS.
I am a beginner of GraphBLAS. I try to compile the GraphBLAS on a server with Ubuntu 20.04 and NVIDIA RTX 3080Ti GPU with CUDA Version=11.5. When I execute the make -j16, there is some error information listed below.

(graphblast) bizhao.shi@dasys21-lc:~/research/compiler/graphblast/build$ make                                                                                       
Scanning dependencies of target graphblas                                                                                                                           
[  1%] Linking CXX static library libgraphblas.a                                                                                                                    
[  1%] Built target graphblas                                                                                                                                       
[  3%] Building NVCC (Device) object CMakeFiles/gspgemm.dir/ext/moderngpu/src/gspgemm_generated_mgpucontext.cu.o                                                    
nvcc warning : The 'compute_35', 'compute_37', 'sm_35', and 'sm_37' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-ta
rgets to suppress warning).                                                                                                                                         
nvcc warning : The 'compute_35', 'compute_37', 'sm_35', and 'sm_37' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-ta
rgets to suppress warning).                                                                                                                                         
ptxas info    : 0 bytes gmem                                                                                                                                        
ptxas info    : Compiling entry function '_ZN4mgpu17KernelVersionShimEv' for 'sm_35'                                                                                
ptxas info    : Function properties for _ZN4mgpu17KernelVersionShimEv                                                                                               
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads                                                                                                  
ptxas info    : Used 2 registers, 320 bytes cmem[0]                                                                                                                 
/rshome/bizhao.shi/research/compiler/graphblast/ext/moderngpu/src/mgpucontext.cu:126:6: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-d
eclarations]                                                                                                                                                        
  126 | std::auto_ptr<DeviceGroup> deviceGroup;                                                                                                                     
      |      ^~~~~~~~                                                                                                                                               
/usr/include/c++/9/bits/unique_ptr.h:53:25: note: declared here                                                                                                     
   53 |   template<typename> class auto_ptr;                                                                                                                        
      |                         ^~~~~~~~                                                                                                                            
/rshome/bizhao.shi/research/compiler/graphblast/ext/moderngpu/src/mgpucontext.cu:216:6: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-d
eclarations]                                                                                                                                                        
  216 | std::auto_ptr<ContextGroup> contextGroup;                                                                                                                   
      |      ^~~~~~~~                                                                                                                                               
/usr/include/c++/9/bits/unique_ptr.h:53:25: note: declared here                                                                                                     
   53 |   template<typename> class auto_ptr;                                                                                                                        
      |                         ^~~~~~~~
[  4%] Building NVCC (Device) object CMakeFiles/gspgemm.dir/test/gspgemm_generated_gspgemm.cu.o
nvcc warning : The 'compute_35', 'compute_37', 'sm_35', and 'sm_37' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /usr/local/cuda/include/thrust/detail/config/config.h:27,
                 from /usr/local/cuda/include/thrust/detail/config.h:23,
                 from /usr/local/cuda/include/thrust/iterator/iterator_facade.h:35,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/device/../iterator/arg_index_input_iterator.cuh:48,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/device/device_reduce.cuh:41,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/cub.cuh:53,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/backend/cuda/spmspv_inner.hpp:8,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/backend/cuda/cuda.hpp:13,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/graphblas.hpp:16,
                 from /rshome/bizhao.shi/research/compiler/graphblast/test/gspgemm.cu:12:
/usr/local/cuda/include/thrust/detail/config/cpp_dialect.h:131:13: warning: Thrust requires at least C++14. C++11 is deprecated but still supported. C++11 support will be removed in a future release. Define THRUST_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.
  131 |      THRUST_COMPILER_DEPRECATION_SOFT(C++14, C++11);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                           
In file included from /usr/local/cuda/include/thrust/system/cuda/config.h:33,
                 from /usr/local/cuda/include/thrust/system/cuda/detail/execution_policy.h:35,
                 from /usr/local/cuda/include/thrust/iterator/detail/device_system_tag.h:23,
                 from /usr/local/cuda/include/thrust/iterator/detail/iterator_facade_category.h:22,
                 from /usr/local/cuda/include/thrust/iterator/iterator_facade.h:37,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/device/../iterator/arg_index_input_iterator.cuh:48,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/device/device_reduce.cuh:41,
                 from /rshome/bizhao.shi/research/compiler/graphblast/ext/cub/cub/cub.cuh:53,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/backend/cuda/spmspv_inner.hpp:8,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/backend/cuda/cuda.hpp:13,
                 from /rshome/bizhao.shi/research/compiler/graphblast/./graphblas/graphblas.hpp:16,
                 from /rshome/bizhao.shi/research/compiler/graphblast/test/gspgemm.cu:12:
/usr/local/cuda/include/cub/util_namespace.cuh:46:2: error: #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
   46 | #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
      |  ^~~~~
CMake Error at gspgemm_generated_gspgemm.cu.o.cmake:220 (message):
  Error generating
  /rshome/bizhao.shi/research/compiler/graphblast/build/CMakeFiles/gspgemm.dir/test/./gspgemm_generated_gspgemm.cu.o


make[2]: *** [CMakeFiles/gspgemm.dir/build.make:65: CMakeFiles/gspgemm.dir/test/gspgemm_generated_gspgemm.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:101: CMakeFiles/gspgemm.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I would like to ask for the solution of CUB error, thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions